Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

LCMS2MBS.GetSupportedIntentCodes(context as LCMS2ContextMBS) as UInt32()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 14.1 Yes Yes Yes Yes No
Function: Fills an array with id‐numbers for all supported intents.
Example:
dim names() as string = LCMS2MBS.GetSupportedIntentDescriptions
dim codes() as UInt32 = LCMS2MBS.GetSupportedIntentCodes

dim u as Integer = UBound(names)
for i as Integer = 0 to u
MsgBox str(codes(i))+": "+names(i)
next
Notes: Little CMS plug‐in architecture allows to implement user‐defined intents; use this function to get info about such extended functionality.

See also:

Feedback, Comments & Corrections

LCMS2MBS.GetSupportedIntentDescriptions as string()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.4 Yes Yes Yes Yes No
Function: Fills an array with descriptions for all supported intents.
Example:
MsgBox Join(LCMS2MBS.GetSupportedIntentDescriptions, EndOfLine)
Notes: Little CMS plug‐in architecture allows to implement user‐defined intents; use this function to get info about such extended functionality.

Feedback, Comments & Corrections

LCMS2MBS.GridPoints(n as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.4 Yes Yes Yes Yes No
Function: Calculates grid points.
Example:
MsgBox str(LCMS2MBS.GridPoints(2))

Feedback, Comments & Corrections

LCMS2MBS.kcmsD50X as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.1 Yes Yes Yes Yes No
Function: X value of D50 XYZ normalized to Y=1.0.

Feedback, Comments & Corrections

LCMS2MBS.kcmsD50Y as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.1 Yes Yes Yes Yes No
Function: Y value of D50 XYZ normalized to Y=1.0.

Feedback, Comments & Corrections

LCMS2MBS.kcmsD50Z as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.1 Yes Yes Yes Yes No
Function: Z value of D50 XYZ normalized to Y=1.0.

Feedback, Comments & Corrections

LCMS2MBS.kcmsPERCEPTUAL_BLACK_X as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.1 Yes Yes Yes Yes No
Function: X of V4 perceptual black.

Feedback, Comments & Corrections

LCMS2MBS.kcmsPERCEPTUAL_BLACK_Y as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.1 Yes Yes Yes Yes No
Function: Y of V4 perceptual black.

Feedback, Comments & Corrections

LCMS2MBS.kcmsPERCEPTUAL_BLACK_Z as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.1 Yes Yes Yes Yes No
Function: Z of V4 perceptual black.

Feedback, Comments & Corrections

LCMS2MBS.Lab2LCh(p as LCMS2CIELabMBS) as LCMS2CIELChMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Converts lab color to LCh value.

Feedback, Comments & Corrections

LCMS2MBS.Lab2XYZ(p as LCMS2CIELabMBS, whitepoint as LCMS2CIEXYZMBS = nil) as LCMS2CIEXYZMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Converts color to XYZ value.
Notes: Setting WhitePoint to NULL forces D50 as white point.

Feedback, Comments & Corrections

LCMS2MBS.LabEncoded2Float(w0 as UInt16, w1 as UInt16, w2 as UInt16) as LCMS2CIELabMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Decodes a Lab value, encoded on ICC v4 convention to a lab value.
Notes:
w0, w1 and w2: Array of 3 UInt16 holding the encoded values.
Returns lab color.

Feedback, Comments & Corrections

LCMS2MBS.LabEncoded2FloatV2(w0 as UInt16, w1 as UInt16, w2 as UInt16) as LCMS2CIELabMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Decodes a Lab value, encoded on ICC v2 convention to a Lab value.
Notes: w0, w1 and w2: 3 UInt16 numbers holding the encoded values.

Feedback, Comments & Corrections

LCMS2MBS.LCh2Lab(p as LCMS2CIELChMBS) as LCMS2CIELabMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Colorimetric space conversion from LCh to Lab.

Feedback, Comments & Corrections

LCMS2MBS.NewBitmap(width as Integer,height as Integer, colorspace as Integer) as LCMS2BitmapMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Creates a bitmap object with given size and color space.

See also:

Feedback, Comments & Corrections

LCMS2MBS.NewBitmap(width as Integer,height as Integer, colorspace as Integer, RowBytes as Integer) as LCMS2BitmapMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Creates a bitmap object with given size and color space.

See also:

Feedback, Comments & Corrections

LCMS2MBS.NewBitmap(width as Integer,height as Integer, colorspace as Integer, RowBytes as Integer, data as memoryblock) as LCMS2BitmapMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Creates a bitmap object with given size and color space.
Notes:
In this variant, you pass the memoryblock with right size.
Passing memoryblock of wrong size can lead into crashs.

See also:

Feedback, Comments & Corrections

LCMS2MBS.OPTIMIZED_SH(n as UInt32) as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Shifts the value so you can bitwise or it with other values to get a pixel format.
Notes: Optimized -- previous optimization already returns the final 8-bit value.

Feedback, Comments & Corrections

LCMS2MBS.PixelFormat(FloatingPoint as boolean, Optimized as boolean, ColorSpace as UInt32, MinIsWhite as boolean, Planar as boolean, EndianSwap as boolean, DoSwap as boolean, ExtraSamples as UInt32, Channels as UInt32, BytesPerSample as UInt32, SwapFirst as boolean) as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Utility function to create a pixel format.
Notes:
Format of pixel is defined by one UInt32, using bit fields as follows

A O TTTTT U Y F P X S EEE CCCC BBB

FloatingPoint: With this flag we can differentiate 16 bits as float and as int
Optimized: Previous optimization already returns the final 8-bit value
ColorSpace: Pixeltype
MinIsWhite: Flavor 0=MinIsBlack(Chocolate) 1=MinIsWhite(Vanilla)
Planar: Planar? 0=Chunky, 1=Planar
EndianSwap: swap 16 bps endianess?
DoSwap: Do swap? ie, BGR, KYMC
ExtraSamples: Extra samples
Channels: Channels (Samples per pixel)
BytesPerSample: bytes per sample
SwapFirst: Swap first - changes ABGR to BGRA and KCMY to CMYK

Feedback, Comments & Corrections

LCMS2MBS.PLANAR_SH(n as UInt32) as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Shifts the value so you can bitwise or it with other values to get a pixel format.
Notes: Planar? 0=Chunky, 1=Planar

Feedback, Comments & Corrections

LCMS2MBS.SetAdaptationState(context as LCMS2ContextMBS, d as Double) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 14.1 Yes Yes Yes Yes No
Function: Sets adaptation state for absolute colorimetric intent, on all but CreateExtendedTransform.
Notes:
Little CMS can handle incomplete adaptation states.

d: Degree on adaptation 0=Not adapted, 1=Complete adaptation, in-between=Partial adaptation. Use negative values to return the global state without changing it.

Returns previous global adaptation state.

See also:

Feedback, Comments & Corrections

LCMS2MBS.SetAdaptationState(d as Double) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Sets adaptation state for absolute colorimetric intent, on all but CreateExtendedTransform.
Notes:
Little CMS can handle incomplete adaptation states.

d: Degree on adaptation 0=Not adapted, 1=Complete adaptation, in-between=Partial adaptation. Use negative values to return the global state without changing it.

Returns previous global adaptation state.

See also:

Feedback, Comments & Corrections

LCMS2MBS.SetAlarmCodes(context as LCMS2ContextMBS, values() as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 14.1 Yes Yes Yes Yes No
Function: Sets the global codes used to mark out-out-gamut on Proofing transforms.
Notes:
Values are meant to be encoded in 16 bits.
AlarmCodes: Array of 16 codes. All 16 values must be specified, set to zero for unused channels.

See also:

Feedback, Comments & Corrections

LCMS2MBS.SetAlarmCodes(values() as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Sets the global codes used to mark out-out-gamut on Proofing transforms.
Notes:
Values are meant to be encoded in 16 bits.
AlarmCodes: Array of 16 codes. All 16 values must be specified, set to zero for unused channels.

See also:

Feedback, Comments & Corrections

LCMS2MBS.SetLogErrorHandler(Context as LCMS2ContextMBS, handler as LCMS2ErrorHandlerMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 14.1 Yes Yes Yes Yes No
Function: Allows user to set any specific logger.
Notes:
Each time this function is called, the previous logger is replaced. Calling this functin with NULL as parameter, does reset the logger to the default Little CMS logger. The default Little CMS logger does nothing.

LCMS2ErrorHandlerMBS is an Interface. You add it to the interface of your window/thread/class. Than you get a method "Error(context as LCMS2ContextMBS, ErrorCode as UInt32, Text as string)" which is called to log error messages. The context parameter is the object you pass for reference in the various context parameters to LCMS2 functions.

See also:

Feedback, Comments & Corrections

LCMS2MBS.SetLogErrorHandler(handler as LCMS2ErrorHandlerMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Allows user to set any specific logger.
Notes:
Each time this function is called, the previous logger is replaced. Calling this functin with NULL as parameter, does reset the logger to the default Little CMS logger. The default Little CMS logger does nothing.

LCMS2ErrorHandlerMBS is an Interface. You add it to the interface of your window/thread/class. Than you get a method "Error(context as LCMS2ContextMBS, ErrorCode as UInt32, Text as string)" which is called to log error messages. The context parameter is the object you pass for reference in the various context parameters to LCMS2 functions.

See also:

Feedback, Comments & Corrections

LCMS2MBS.SWAPFIRST_SH(n as UInt32) as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Shifts the value so you can bitwise or it with other values to get a pixel format.
Notes: Swap first - changes ABGR to BGRA and KCMY to CMYK

Feedback, Comments & Corrections

LCMS2MBS.TagInteger(tag as string) as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Converts tag integer to string.
Example:
MsgBox hex(LCMS2MBS.TagInteger("devs"))+" "+LCMS2MBS.TagString(&h64657673)

Feedback, Comments & Corrections

LCMS2MBS.TagString(tag as UInt32) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Converts tag string to integer.
Example:
MsgBox hex(LCMS2MBS.TagInteger("devs"))+" "+LCMS2MBS.TagString(&h64657673)

Feedback, Comments & Corrections

LCMS2MBS.TempFromWhitePoint(TempK as LCMS2CIExyYMBS) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Correlates a black body temperature in K from given chromaticity.
Example:
dim c as new LCMS2CIExyYMBS

c.x = 0.32
c.y = 0.32
c.YY = 1.0

MsgBox str(LCMS2MBS.TempFromWhitePoint(c))
Notes: Returns temperature. Or zero on any error.

Feedback, Comments & Corrections

Previous items Next items

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




Links
MBS Xojo Plugins