module FreeImage::ICC

  1. lib/free-image/modules/icc.rb

Methods

Public Instance

  1. icc_profile
  2. icc_profile=
  3. icc_supported?

Classes and Modules

  1. FreeImage::ICC::Profile

Public Instance methods

icc_profile ()
[show source]
# File lib/free-image/modules/icc.rb, line 16
def icc_profile
  result = FreeImage.FreeImage_GetICCProfile(self)
  FreeImage.check_last_error
  result
end
icc_profile= (value)
[show source]
# File lib/free-image/modules/icc.rb, line 27
def icc_profile=(value)
  result = if value
    FreeImage.FreeImage_CreateICCProfile(self, value[:data], value[:size])
  else
    FreeImage.FreeImage_DestroyICCProfile(self)
  end
  FreeImage.check_last_error
  result
end
icc_supported? ()
[show source]
# File lib/free-image/modules/icc.rb, line 37
def icc_supported?
  FreeImage.icc_supported(self)
end