Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFColorSpaceMBS class.

DynaPDFColorSpaceMBS.Alternate as DynaPDFColorSpaceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The alternative color space.

Only set if the color space contains an alternate or base color space.
(Read only property)

DynaPDFColorSpaceMBS.AlternateType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Alternate color space or base space of an Indexed or Pattern color space.

(Read only property)

Some examples using this property:

DynaPDFColorSpaceMBS.Buffer as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Contains either an ICC profile or the color table of an Indexed color space.

(Read only property)

DynaPDFColorSpaceMBS.BufferSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The buffer length in bytes.

(Read only property)

DynaPDFColorSpaceMBS.ColorantsCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of colorants in the array.
Example
Sub DrawSomething(pdf as DynaPDFMBS)
// draw all colorants with their own color
Dim MyX, MyY as Double

MyX = 10
MyY = 100

// set a font
call pdf.SetFont "Times", pdf.kfsItalic, 10.0, true, pdf.kcp1252

// loop over all color spaces
dim Colorcount as Integer = pdf.GetColorSpaceCount

For j as Integer = 0 to Colorcount-1
MyX = 10
dim MyColourSpace as DynaPDFColorSpaceMBS = PDF.GetColorSpaceObj(j)
dim ColorantsCount as Integer = MyColourSpace.ColorantsCount
dim c as Integer = MyColourSpace.NumInComponents
Call pdf.SetExtColorSpace j

// draw name of each colorant
for i as Integer = 0 to c-1

// build array with colors and set 100% for the one color we need
dim values() as Double
redim values(c-1)
values(i) = 1.0

// get name
dim name as string = "#"+str(i)
if i <= ColorantsCount then
name = MyColourSpace.Colorants(i)
end if

// seaw name
Call pdf.SetFillColor(values)
call pdf.WriteText(MyX,MyY, name)

// next
MyX = MyX + pdf.GetTextWidth(name) + 20
next

// next
MyY = MyY+20
Next
End Sub

(Read only property)

Some examples using this property:

DynaPDFColorSpaceMBS.Description as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 16.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The description text for color space.

For color spaces with valid ICC profile only.
(Read only property)

DynaPDFColorSpaceMBS.DeviceNAttributes as DynaPDFDeviceNAttributesMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Optional attributes of DeviceN or NChannel color spaces.

(Read only property)

Some examples using this property:

DynaPDFColorSpaceMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The internal handle for this color space object.

An IColorSpaceObj reference.
(Read only property)

DynaPDFColorSpaceMBS.HasBlackPoint as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the black point array has values.

(Read only property)

DynaPDFColorSpaceMBS.HasGamma as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the gamma array has values.

(Read only property)

DynaPDFColorSpaceMBS.HasMatrix as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the matrix array has values.

(Read only property)

DynaPDFColorSpaceMBS.HasRange as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the range array has values.

(Read only property)

DynaPDFColorSpaceMBS.HasWhitePoint as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the white point array has values.

(Read only property)

DynaPDFColorSpaceMBS.Index as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 16.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The index in the color space list for current document.

Can be -1 if not known by plugin.
In that case you would need to get list of all colorspaces and compare handle values to see which entry you got.
(Read only property)

DynaPDFColorSpaceMBS.Manufacturer as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 16.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The manufacturer text for color space.

For color spaces with valid ICC profile only.
(Read only property)

DynaPDFColorSpaceMBS.MetaData as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Optional XMP metadata stream -> ICCBased only.

(Read only property)

DynaPDFColorSpaceMBS.MetadataSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Metadata length in bytes.

(Read only property)

DynaPDFColorSpaceMBS.Model as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 16.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The model text for color space.

For color spaces with valid ICC profile only.
(Read only property)

DynaPDFColorSpaceMBS.Name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 16.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name of the color space.

For color spaces with valid ICC profile only.
The plugin picks name from Model, Description and Manufacturer properties.
(Read only property)

DynaPDFColorSpaceMBS.NumColors as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of colors in this color space.

HiVal + 1 as specified in the color space. Indexed color space only.
(Read only property)

DynaPDFColorSpaceMBS.NumInComponents as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Number of input components.

(Read only property)

Some examples using this property:

DynaPDFColorSpaceMBS.NumOutComponents as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Number of output components.

(Read only property)

Some examples using this property:

DynaPDFColorSpaceMBS.Type as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The type of this color space.

(Read only property)

DynaPDFColorSpaceMBS.TypeString as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DynaPDF MBS DynaPDF Plugin 16.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The type as string for viewing in debugger.

(Read only property)

The items on this page are in the following plugins: MBS DynaPDF Plugin.


The biggest plugin in space...