public Image loadRawImageFromFile(
    string filename, 
    uint width, 
    uint height, 
    ColorSpace color_space)

Loads an image which has "raw" image format.

This function loads the data without any conversion. So it is usually faster than the other functions.

Parameters

filename

A path to a image file.

width

The width of an image file.

height

The height of an image file.

color_space

the ColorSpace:

  • ColorSpace.DEVICEGRAY</li> <li>ColorSpace.DEVICERGB
  • HaruColor.DEVICE_CMYK
  • Returns

    When loadRawImageFromFile() succeeds, it returns an instance of a Image object. Otherwise, it returns null and error-handler is called