Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

LCMS2ProfileMBS.ReadScreening as LCMS2ScreeningMBS
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 screening.
Notes:
Works with kcmsSigScreeningTag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadSequence(tag as Integer) as LCMS2SequenceMBS
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 sequence.
Notes:
Only for kcmsSigProfileSequenceDescTag and kcmsSigProfileSequenceIdTag.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadSignature(tag as Integer) as UInt32
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 signature tag.
Notes: Works with kcmsSigColorimetricIntentImageStateTag, kcmsSigPerceptualRenderingIntentGamutTag, kcmsSigSaturationRenderingIntentGamutTag or kcmsSigTechnologyTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadTag(tag as Integer) as Variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 11.3 Yes Yes Yes Yes No
Function: Reads a tag.
Notes:
This is a convenience function which gives you the tag in whatever class the plugin thing is suitable.
Check with isa what class you get.
Returns nil on any error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadToneCurve(tag as Integer) as LCMS2ToneCurveMBS
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 ToneCurve.
Notes: Works with kcmsSigBlueTRCTag, kcmsSigGrayTRCTag, kcmsSigGreenTRCTag and kcmsSigRedTRCTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.ReadUcrBg as LCMS2UcrBgMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Reads UcrBg tag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.SaveProfileToFile(file as folderitem) 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: Saves the contents of a profile to a given file.
Notes: Returns true on success and false on failure.

Feedback, Comments & Corrections

LCMS2ProfileMBS.SaveProfileToMemory 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: Saves the contents of a profile to a memoryblock.
Notes: Returns memoryblock on success and nil on failure.

Feedback, Comments & Corrections

LCMS2ProfileMBS.SaveProfileToString 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: Saves the contents of a profile to a string.
Notes: Returns string with profile data on success and "" on failure.

Feedback, Comments & Corrections

LCMS2ProfileMBS.TagLinkedTo(sig as Integer) 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: Returns the tag linked to sig, in the case two tags are sharing same resource, or nil if the tag is not linked to any other tag.
Notes:
sig: Signature of linking tag.

Returns signature of linked tag, or 0 if no tag is linked.

Feedback, Comments & Corrections

LCMS2ProfileMBS.TagSignature(index as Integer) 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: Returns the signature of a tag located in n position being n a 0-based index: i.e., first tag is indexed with n=0.
Notes:
index: index to a tag position (0-based)

Returns the tag signature on success, 0 on error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteChromaticAdaptation(value as LCMS2Mat3MBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Writes chromatic adaptation.
Notes: Variant of the function which takes matrix of values.

See also:

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteChromaticAdaptation(values() as LCMS2CIEXYZMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Writes chromatic adaptation.
Notes:
Pass array with 3 XYZ colors.
Returns true on success.

See also:

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteChromaticity(o as LCMS2CIExyYTripleMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Writes chromaticity tag.
Notes:
For kcmsSigChromaticityTag.
Returns true on success and false on error.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteCIEXYZ(tag as Integer, o as LCMS2CIEXYZMBS) 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: Writes CIE XYZ tag.
Notes: Works with kcmsSigBlueColorantTag, kcmsSigBlueMatrixColumnTag, kcmsSigGreenColorantTag, kcmsSigGreenMatrixColumnTag, kcmsSigLuminanceTag, kcmsSigMediaBlackPointTag, kcmsSigMediaWhitePointTag, kcmsSigRedColorantTag and kcmsSigRedMatrixColumnTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteColorantOrder(data as Memoryblock) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Writes colorant order.
Notes:
For kcmsSigColorantOrderTag.
Data should be 16 byte long.
Returns true on success or false on failure.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteDate(tag as Integer, o as LCMS2DateMBS) 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: Writes date tag.
Notes: Works with kcmsSigCalibrationDateTimeTag and kcmsSigDateTimeTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteDict(tag as Integer, o as LCMS2DictionaryMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.4 Yes Yes Yes Yes No
Function: Writes Dictionary tag.
Notes: Works with kcmsSigMetaTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteICCData(tag as Integer, o as LCMS2ICCDataMBS) 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: Writes ICC Data tag.
Notes: Works with kcmsSigDataTag, kcmsSigPs2CRD0Tag, kcmsSigPs2CRD1Tag, kcmsSigPs2CRD2Tag, kcmsSigPs2CRD3Tag, kcmsSigPs2CSATag and kcmsSigPs2RenderingIntentTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteICCMeasurementConditions(value as LCMS2ICCMeasurementConditionsMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Writes IIC measurement conditions.
Notes:
for kcmsSigMeasurementTag.
Writes data and returns true on success or false on failure.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteICCViewingConditions(o as LCMS2ICCViewingConditionsMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Writes ICC Viewing conditions tag.
Notes: Works with kcmsSigViewingConditionsTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteMLU(tag as Integer, o as LCMS2MLUMBS) 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: Writes MLU tag.
Notes: Works with kcmsSigCharTargetTag, kcmsSigCopyrightTag, kcmsSigDeviceMfgDescTag, kcmsSigDeviceModelDescTag, kcmsSigProfileDescriptionTag, kcmsSigScreeningDescTag and kcmsSigViewingCondDescTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteNamedColorList(tag as Integer, o as LCMS2NamedColorListMBS) 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: Writes named color list tag.
Notes: Works with kcmsSigColorantTableTag, kcmsSigColorantTableOutTag, kcmsSigCrdInfoTag and kcmsSigNamedColor2Tag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WritePipeline(tag as Integer, o as LCMS2PipelineMBS) 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: Writes pipeline tag.
Notes: Works with kcmsSigAToB0Tag, kcmsSigAToB1Tag, kcmsSigAToB2Tag, kcmsSigBToA0Tag, kcmsSigBToA1Tag, kcmsSigBToA2Tag, kcmsSigDToB0Tag, kcmsSigDToB1Tag, kcmsSigDToB2Tag, kcmsSigDToB3Tag, kcmsSigBToD0Tag, kcmsSigBToD1Tag, kcmsSigBToD2Tag, kcmsSigBToD3Tag, kcmsSigGamutTag, kcmsSigPreview0Tag, kcmsSigPreview1Tag and kcmsSigPreview2Tag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteRawTag(sig as Integer, data as Memoryblock) 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: Writes raw tag.
Notes:
The RAW version does the same as WriteTag* but without any interpretation of the data. Please note it is fair easy to deal with "cooked" structures, since there are primitives for allocating, deleting and modifying data. For RAW data you are responsible of everything. If you want to deal with a private tag, you may want to write a plug-in instead of messing up with raw data.

sig: Signature of tag to be written
data: memory block holding the data.

Returns true on success, false on 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.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteScreening(o as LCMS2ScreeningMBS) 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: Writes screening tag.
Notes: Works with kcmsSigScreeningTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteSequence(tag as Integer, o as LCMS2SequenceMBS) 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: Writes sequence tag.
Notes: Only for kcmsSigProfileSequenceDescTag and kcmsSigProfileSequenceIdTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteSignature(tag as Integer, o as UInt32) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Writes a signature tag with the given values.
Notes: Works with kcmsSigColorimetricIntentImageStateTag, kcmsSigPerceptualRenderingIntentGamutTag, kcmsSigSaturationRenderingIntentGamutTag or kcmsSigTechnologyTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteToneCurve(tag as Integer, o as LCMS2ToneCurveMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Writes tone curve tag.
Example:
// read a profile
dim f as FolderItem = SpecialFolder.Desktop.Child("myprofile.icc")
dim p as LCMS2ProfileMBS = LCMS2ProfileMBS.OpenProfileFromFile(f)

// find gray level tone curve
dim t as LCMS2ToneCurveMBS = p.ReadToneCurve(LCMS2MBS.kcmsSigGrayTRCTag)
if t<>nil then

// let's make a new one with half of old values
dim values(1000) as single

for i as Integer = 0 to 1000
values(i) = t.EvalToneCurveFloat(i/1000.0) * 0.5
next

// build new curve with that values
dim n as LCMS2ToneCurveMBS = LCMS2ToneCurveMBS.BuildTabulatedToneCurve(nil, values)

// write back
if not p.WriteToneCurve(LCMS2MBS.kcmsSigGrayTRCTag, n) then
MsgBox "failed to write tone curve"
end if
end if

// write profile
f = SpecialFolder.Desktop.Child("test.icc")
call p.SaveProfileToFile(f)
Notes: Works with kcmsSigBlueTRCTag, kcmsSigGrayTRCTag, kcmsSigGreenTRCTag and kcmsSigRedTRCTag.

Feedback, Comments & Corrections

LCMS2ProfileMBS.WriteUcrBg(o as LCMS2UcrBgMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method LCMS2 MBS Images Plugin 12.0 Yes Yes Yes Yes No
Function: Writes UcrBg tag.

Feedback, Comments & Corrections

Previous items

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




Links
MBS Xojo Chart Plugins