Platforms to show: All Mac Windows Linux Cross-Platform
/Images/LCMS2/Change Whitepoint of profile
Required plugins for this example: MBS Images Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Images/LCMS2/Change Whitepoint of profile
This example is the version from Sun, 17th Mar 2012.
Project "Change Whitepoint of profile.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
EventHandler Sub Open()
dim f as FolderItem
dim p as LCMS2ProfileMBS
// change path to your favorite profile
f = SpecialFolder.Desktop.Child("sRGB Profile.icc")
p = LCMS2ProfileMBS.OpenProfileFromFile(f)
dim po as new LCMS2CIEXYZMBS
po.x=0.2
po.y=0.5
po.z=0.7
if p.WriteCIEXYZ(LCMS2MBS.kcmsSigMediaWhitePointTag, po) then
f=SpecialFolder.Desktop.Child("test.icc")
if not p.SaveProfileToFile(f) then
MsgBox "Failed to save file."
else
f.Launch
end if
end if
End EventHandler
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project
The items on this page are in the following plugins: MBS Images Plugin.