Doc.loadRawImageFromFile

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.

class Doc
Image
loadRawImageFromFile
(
string filename
,
uint width
,
uint height
,
ColorSpace colorSpace
)

Parameters

filename string

A path to a image file.

width uint

The width of an image file.

height uint

The height of an image file.

colorSpace ColorSpace

the ColorSpace. deviceGrey, deviceRGB or deviceCMYK are allowed.

Return Value

Type: Image

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

Meta