Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFColorSpaceMBS class.

DynaPDFColorSpaceMBS.BlackPoint(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
CIE blackpoint.

If set, the array contains exactly 3 values. (index 0 to 2)

DynaPDFColorSpaceMBS.Colorants(index as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Colorant names (Separation, DeviceN, and NChannel only).
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

This array contains ColorantsCount strings.
The plugin marks the string as UTF-8 and it should contain UTF-8. Be we saw PDF files form other applications which put here WindowsANSI or MacRoman strings.

Some examples using this method:

DynaPDFColorSpaceMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 15.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The private constructor.

DynaPDFColorSpaceMBS.Gamma(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The gamma values.

If set, one value per component.

DynaPDFColorSpaceMBS.Matrix(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
XYZ matrix.

If set, the array contains exactly 9 values.

DynaPDFColorSpaceMBS.Range(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The range values.

min/max for each component or for the .a and .b components of a Lab color space. Index is zero based.

DynaPDFColorSpaceMBS.WhitePoint(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
CIE whitepoint.

If set, the array contains exactly 3 values. (index 0 to 2)

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


The biggest plugin in space...