public class

Image2RGB

extends Filter
implements __Delete AutoCloseable
java.lang.Object
   ↳ com.pdftron.filters.Filter
     ↳ com.pdftron.pdf.Image2RGB

Class Overview

Image2RGB is a filter that can decompress and normalize any PDF image stream (e.g. monochrome, CMYK, etc) into a raw RGB pixel stream.

Summary

Public Constructors
Image2RGB(Element image_element)
Instantiates a new Image2RGB object with specified element
Image2RGB(Obj image_xobject)
Instantiates a new Image2RGB with specified image xobject
Image2RGB(Image image)
Instantiates a new Image2RGB with specifed image
Public Methods
void close()
Frees the native memory of the object.
void destroy()
Frees the native memory of the object.
[Expand]
Inherited Methods
From class com.pdftron.filters.Filter
From class java.lang.Object
From interface com.pdftron.pdf.__Delete
From interface java.lang.AutoCloseable

Public Constructors

public Image2RGB (Element image_element)

Instantiates a new Image2RGB object with specified element

Parameters
image_element the input image element

public Image2RGB (Obj image_xobject)

Instantiates a new Image2RGB with specified image xobject

Parameters
image_xobject the input image Obj

public Image2RGB (Image image)

Instantiates a new Image2RGB with specifed image

Parameters
image the input image

Public Methods

public void close ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

See Also