MBS Plugin Documentation
Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchie
New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0
The list of the themes, classes, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
class CMGammaMBS
class, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: A class for a gamma table.
Example:
class, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: A class for a gamma table.
Example:
'get display profile
dim displayProfile as folderitem
If TargetMacOS Then
displayProfile = GetSystemColorSyncProfileMBS.Location.Path
Else
displayProfile = GetWindowsColorProfileMBS
End if
dim profile as CMProfileMBS = CMOpenProfileFromFileMBS(displayProfile)
'then whitepoint reference values & gamma for calculations
dim wp as CMPointMBS = profile.MediaWhitePoint
const icSigRedTRCTag=&h72545243
const icSigGreenTRCTag=&h67545243
const icSigBlueTRCTag=&h62545243
const icSigGrayTRCTag=&h6b545243
dim gammaTable as CMGammaMBS
gammaTable = profile.ReadICCGamma(icSigRedTRCTag)
if gammaTable<>nil then MsgBox "red gamma: "+str(gammaTable.EstimateGamma)
gammaTable = profile.ReadICCGamma(icSigGreenTRCTag)
if gammaTable<>nil then MsgBox "green gamma: "+str(gammaTable.EstimateGamma)
gammaTable = profile.ReadICCGamma(icSigBlueTRCTag)
if gammaTable<>nil then MsgBox "blue gamma: "+str(gammaTable.EstimateGamma)
gammaTable = profile.ReadICCGamma(icSigGrayTRCTag)
if gammaTable<>nil then MsgBox "gray gamma: "+str(gammaTable.EstimateGamma)
CMGammaMBS.close
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The destructor.
Notes:
There is no need to call this method except you want to free all resources of this object now without waiting for Realbasic to do it for you.
(e.g. some Realbasic versions crash on Windows if there are plugin objects not closed.)
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The destructor.
Notes:
There is no need to call this method except you want to free all resources of this object now without waiting for Realbasic to do it for you.
(e.g. some Realbasic versions crash on Windows if there are plugin objects not closed.)
CMGammaMBS.Copy as CMGammaMBS
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies the values into a new gamma object.
Notes: Returns nil on any error.
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies the values into a new gamma object.
Notes: Returns nil on any error.
CMGammaMBS.CopyData as MemoryBlock
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Creates a copy memoryblock with the content of the object's handle.
Notes:
Create a copy of the
Returns nil on any error.
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Creates a copy memoryblock with the content of the object's handle.
Notes:
Create a copy of the
Returns nil on any error.
CMGammaMBS.CRC32 as Integer
property, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 6.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Calculates CRC32 checksum about gamma values.
Example:
A hash value to know whether two gamma tables may be different.
(Read only property)
property, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 6.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Calculates CRC32 checksum about gamma values.
Example:
dim a,b as CMGammaMBS
'... fill a and b
if (a.crc32<>b.crc32) then
' a is not equal to b
else
' a may be equal to b or not
' so compare them value or value.
end if
Notes: A hash value to know whether two gamma tables may be different.
(Read only property)
CMGammaMBS.Data as MemoryBlock
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: A memoryblock pointing to the content of the object's handle.
Notes:
The memoryblock returned has size=0 in the property.
As you are working with the original data, be carefull!
There is no bounds checking for this memoryblock and it will be useless if the CMGammaMBS object is destroyed.
Returns nil on any error.
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: A memoryblock pointing to the content of the object's handle.
Notes:
The memoryblock returned has size=0 in the property.
As you are working with the original data, be carefull!
There is no bounds checking for this memoryblock and it will be useless if the CMGammaMBS object is destroyed.
Returns nil on any error.
CMGammaMBS.Entries as Integer
property, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 6.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The number of entries in the gamma table.
Notes: (Read only property)
property, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 6.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The number of entries in the gamma table.
Notes: (Read only property)
CMGammaMBS.EstimateGamma as double
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Estimates the gamma value.
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Estimates the gamma value.
CMGammaMBS.GammaValue(index as integer) as integer
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 6.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The values of the gamma table.
Notes:
Values are 16bit unsigned integers, so multiply floats with 65536.
(Read and Write runtime property)
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 6.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The values of the gamma table.
Notes:
Values are 16bit unsigned integers, so multiply floats with 65536.
(Read and Write runtime property)
CMGammaMBS.Handle as Integer
property, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The handle to the Gamma Table.
Notes: (Read only property)
property, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The handle to the Gamma Table.
Notes: (Read only property)
CMGammaMBS.JoinGamma(out as CMGammaMBS) as CMGammaMBS
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Joins two gamma tables.
Notes: Returns nil on any error.
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Joins two gamma tables.
Notes: Returns nil on any error.
CMGammaMBS.JoinGammaEx(out as CMGammaMBS, nPoints as integer) as CMGammaMBS
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Joins two gamma tables.
Notes: Returns nil on any error.
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Joins two gamma tables.
Notes: Returns nil on any error.
CMGammaMBS.ReverseGamma(nResultSamples as integer) as CMGammaMBS
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Reverses the gamma values.
Notes: Returns nil on any error.
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Reverses the gamma values.
Notes: Returns nil on any error.
CMGammaMBS.SmoothGamma(lambda as double) as boolean
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The Gamma table is changed to look better for an human eye.
Notes: Returns false on any error.
method, LCMS, MBS LCMS Plugin (LCMS), class CMGammaMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The Gamma table is changed to look better for an human eye.
Notes: Returns false on any error.
The items on this page are in the following plugins: MBS LCMS Plugin.