Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

LCMS2ProfileMBS.Constructor(context as LCMS2ContextMBS = nil)
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 new empty profile.
Notes: On success the handle property is not zero.

See also:

Feedback, Comments & Corrections

LCMS2ProfileMBS.Constructor(file as folderitem, write as boolean = false)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Creates profile by reading in an existing profile or creating a new profile at the given location.
Notes:
file: file location.
write: Whether to create new profile.

On success the handle property is not zero.

See also:

Feedback, Comments & Corrections

LCMS2ProfileMBS.DetectBlackPoint(Intent as Integer, Flags as Integer) as LCMS2CIEXYZMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.4 Yes Yes Yes Yes No
Function: Estimate the black point.

Feedback, Comments & Corrections

LCMS2ProfileMBS.DetectDestinationBlackPoint(Intent as Integer, Flags as Integer) as LCMS2CIEXYZMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.4 Yes Yes Yes Yes No
Function: Calculates the black point of a destination profile.
Notes: This algorithm comes from the Adobe paper disclosing its black point compensation method.

Feedback, Comments & Corrections

LCMS2ProfileMBS.DetectTAC 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: Detects total area coverage.
Notes:
When several colors are printed on top of each other, there is a limit to the amount of ink that can be put on paper. This maximum total dot percentage is referred to as either TIC (Total Ink Coverage) or TAC (Total Area Coverage). This function does estimate total area coverage for a given profile in %. Only works on output profiles. On RGB profiles, 400% is returned. TAC is detected by subsampling Lab color space on 6x74x74 points.

Returns estimated area coverage in % on success, 0 on error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.FormatterForBitmap(BitCount as Integer = 8) 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: Build a suitable formatter for the colorspace of this profile.
Notes:
This is a convenience function which prepares you a pixel format for use with LCMS2BitmapMBS class.
Formatters are used to describe how bitmap buffers are organized.

Feedback, Comments & Corrections

LCMS2ProfileMBS.FormatterForColorspace(nBytes as UInt32, IsFloat as boolean = false) 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: Build a suitable formatter for the colorspace of this profile.
Notes: Formatters are used to describe how bitmap buffers are organized.

Feedback, Comments & Corrections

LCMS2ProfileMBS.FormatterForPCS(nBytes as UInt32, IsFloat as boolean = false) 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: Build a suitable formatter for the colorspace of this profile.
Notes: Formatters are used to describe how bitmap buffers are organized.

Feedback, Comments & Corrections

LCMS2ProfileMBS.GetProfileInfo(Info as Integer, LanguageCode as string, CountryCode as string) 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: Gets several information strings from the profile, dealing with localization.
Notes:
Info: A selector of which info to return. (kInfoCopyright, kInfoDescription, kInfoManufacturer or kInfoModel)
Language Code: first name language code from ISO-639/2.
Country Code: first name region code from ISO-3166.

Returns the string. (empty string on error)

Feedback, Comments & Corrections

LCMS2ProfileMBS.IsCLUT(Intent as UInt32, UsedDirection as UInt32) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Returns whatever a CLUT is present in the profile for the given intent and direction.
Notes:
Intent: The intent code.
UsedDirection: UsedAsInput = 0, UsedAsOutput = 1, UsedAsProof = 2.
Returns true CLUT is present for given intent and direction, false otherwise.

Feedback, Comments & Corrections

LCMS2ProfileMBS.IsIntentSupported(Intent as UInt32, UsedDirection as UInt32) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Returns true if the requested intent is implemented in the given direction.
Notes:
Little CMS has a fallback strategy that allows to specify any rendering intent when creating the transform, but the intent really being used may be another if the requested intent is not implemented.

UsedDirection: UsedAsInput = 0, UsedAsOutput = 1, UsedAsProof = 2.
Returns true if the intent is implemented, false otherwise.

Feedback, Comments & Corrections

LCMS2ProfileMBS.IsTag(TagSignature as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Returns true if a tag with signature sig is found on the profile.
Notes:
Useful to check if a profile contains a given tag.
Returns true if the tag is found or false otherwise.

Feedback, Comments & Corrections

LCMS2ProfileMBS.LinkTag(sig as Integer, dest as Integer) as boolean
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 directory entry on tag sig that points to same location as tag dest.
Notes:
Using this function you can collapse several tag entries to the same block in the profile.

sig: Signature of linking tag.
dest: Signature of linked tag.

Returns ture on success, false on error

Feedback, Comments & Corrections

LCMS2ProfileMBS.MD5computeID as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Computes a MD5 checksum and stores it as Profile ID in the profile header.
Notes: Returns true on success or false on failure.

Feedback, Comments & Corrections

LCMS2ProfileMBS.PostScriptCRD(context as LCMS2ContextMBS, intent as UInt32, flags as UInt32 = 0) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: A wrapper on cmsGetPostScriptColorResource to simplify CRD generation.
Notes:
context: Optional a user-defined context cargo.
Intent: The intent code, as described in Intents constants.
Flags: A combination of bit-field kcmsFLAGS* constants.

Returns: The resource as string or an empty string on error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.PostScriptCSA(context as LCMS2ContextMBS, intent as UInt32, flags as UInt32 = 0) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: A wrapper on cmsGetPostScriptColorResource to simplify CSA generation.
Notes:
context: Optional a user-defined context cargo.
Intent: The intent code, as described in Intents constants.
Flags: A combination of bit-field kcmsFLAGS* constants.

Returns: The resource as string or an empty string on error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadChromaticAdaptation 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: Reads a chromatic adaptation.
Notes: On success returns an array of 3 XYZ values.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadChromaticity as LCMS2CIExyYTripleMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Reads chromaticity tag.
Notes:
For kcmsSigChromaticityTag.
Returns nil on error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadCIEXYZ(tag as Integer) as LCMS2CIEXYZMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Reads tag as CIE XYZ value.
Notes:
Works with kcmsSigBlueColorantTag, kcmsSigBlueMatrixColumnTag, kcmsSigGreenColorantTag, kcmsSigGreenMatrixColumnTag, kcmsSigLuminanceTag, kcmsSigMediaBlackPointTag, kcmsSigMediaWhitePointTag, kcmsSigRedColorantTag and kcmsSigRedMatrixColumnTag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadColorantOrder as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Reads colorant order.
Notes:
For kcmsSigColorantOrderTag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadDate(tag as Integer) as LCMS2DateMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Reads tag as date.
Notes:
Works with kcmsSigCalibrationDateTimeTag and kcmsSigDateTimeTag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadDict(tag as Integer) as LCMS2DictionaryMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.4 Yes Yes Yes Yes No
Function: Reads tag as Dictionary value.
Notes:
Works with kcmsSigMetaTag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadICCData(tag as Integer) as LCMS2ICCDataMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Reads tag as ICC Data.
Notes:
Works with kcmsSigDataTag, kcmsSigPs2CRD0Tag, kcmsSigPs2CRD1Tag, kcmsSigPs2CRD2Tag, kcmsSigPs2CRD3Tag, kcmsSigPs2CSATag and kcmsSigPs2RenderingIntentTag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadICCMeasurementConditions as LCMS2ICCMeasurementConditionsMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Reads IIC measurement conditions.
Notes:
for kcmsSigMeasurementTag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadICCViewingConditions as LCMS2ICCViewingConditionsMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Reads tag as ICCViewingConditions value.
Notes: Works with kcmsSigViewingConditionsTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadMLU(tag as Integer) as LCMS2MLUMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Reads tag as MLU.
Notes:
Works with kcmsSigCharTargetTag, kcmsSigCopyrightTag, kcmsSigDeviceMfgDescTag, kcmsSigDeviceModelDescTag, kcmsSigProfileDescriptionTag, kcmsSigScreeningDescTag and kcmsSigViewingCondDescTag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadNamedColorList(tag as Integer) as LCMS2NamedColorListMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Reads tag as named color list.
Notes:
Works with kcmsSigColorantTableTag, kcmsSigColorantTableOutTag, kcmsSigCrdInfoTag and kcmsSigNamedColor2Tag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadPipeline(tag as Integer) as LCMS2PipelineMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Reads tag as pipeline.
Notes:
Works with kcmsSigAToB0Tag, kcmsSigAToB1Tag, kcmsSigAToB2Tag, kcmsSigBToA0Tag, kcmsSigBToA1Tag, kcmsSigBToA2Tag, kcmsSigDToB0Tag, kcmsSigDToB1Tag, kcmsSigDToB2Tag, kcmsSigDToB3Tag, kcmsSigBToD0Tag, kcmsSigBToD1Tag, kcmsSigBToD2Tag, kcmsSigBToD3Tag, kcmsSigGamutTag, kcmsSigPreview0Tag, kcmsSigPreview1Tag and kcmsSigPreview2Tag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadRawTag(sig as Integer) as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Reads raw tag.
Notes:
Similar to ReadTag*, but different in two important aspects. The important point is, this is raw data. No processing is performed, so you can effectively read wrong or broken profiles with this function. Obviously, then you have to interpret all those bytes!

sig: Signature of tag to be read

Returns memoryblock with data or nil on any error.

Those functions allows to read/write directly to the ICC profile any data, without checking anything. As a rule, mixing Raw with cooked doesn't work, so writting a tag as raw and then reading it as cooked without serializing does result into an error. If that is wha you want, you will need to dump the profile to memory or disk and then reopen it.

Returns nil on any error.

Feedback, Comments & Corrections

Next items

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

The biggest plugin in space...




Links
MBS Xojo Chart Plugins