Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

DynapdfColorSpaceMBS.BlackPoint(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 9.3 Yes Yes Yes Yes No
Function: CIE blackpoint.
Notes: If set, the array contains exactly 3 values. (index 0 to 2)

Feedback, Comments & Corrections

DynapdfColorSpaceMBS.Colorants(index as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 9.3 Yes Yes Yes Yes No
Function: 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
Notes:
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.

Feedback, Comments & Corrections

DynaPDFColorSpaceMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 15.0 Yes Yes Yes Yes No
Function: The private constructor.

Feedback, Comments & Corrections

DynapdfColorSpaceMBS.Gamma(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 9.3 Yes Yes Yes Yes No
Function: The gamma values.
Notes: If set, one value per component.

Feedback, Comments & Corrections

DynapdfColorSpaceMBS.Matrix(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 9.3 Yes Yes Yes Yes No
Function: XYZ matrix.
Notes: If set, the array contains exactly 9 values.

Feedback, Comments & Corrections

DynapdfColorSpaceMBS.Range(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 9.3 Yes Yes Yes Yes No
Function: The range values.
Notes: min/max for each component or for the .a and .b components of a Lab color space. Index is zero based.

Feedback, Comments & Corrections

DynapdfColorSpaceMBS.WhitePoint(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 9.3 Yes Yes Yes Yes No
Function: CIE whitepoint.
Notes: If set, the array contains exactly 3 values. (index 0 to 2)

Feedback, Comments & Corrections

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





Links
MBS Xojo Plugins