Show / Hide Table of Contents

# Class Image2RGB

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

##### Inheritance

object
Filter
Image2RGB

##### Implements

IDisposable

##### Inherited Members

Filter.GetName()
Filter.GetDecodeName()
Filter.Begin()
Filter.Size()
Filter.Consume(int)
Filter.Count()
Filter.SetCount(int)
Filter.SetStreamLength(int)
Filter.AttachFilter(Filter)
Filter.ReleaseAttachedFilter()
Filter.GetAttachedFilter()
Filter.GetSourceFilter()
Filter.Flush()
Filter.FlushAll()
Filter.IsInputFilter()
Filter.CanSeek()
Filter.Seek(int, Filter.ReferencePos)
Filter.Tell()
Filter.CreateInputIterator()
Filter.GetFilePath()
Filter.WriteToFile(string, bool)
Filter.Dispose()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: pdftron.PDF

###### Assembly: PDFNet.dll

##### Syntax

    public class Image2RGB : Filter, IDisposable

### Constructors

#### Image2RGB(Element)

Instantiates a new image2 rgb.

##### Declaration

    public Image2RGB(Element image_element)

##### Parameters

Type | Name | Description
--- | --- | ---
Element | image_element | the image_element

##### Exceptions

Type | Condition
--- | ---
PDFNetException | PDFNetException the PDFNet exception

#### Image2RGB(Image)

Instantiates a new image2 rgb.

##### Declaration

    public Image2RGB(Image image)

##### Parameters

Type | Name | Description
--- | --- | ---
Image | image | the image

##### Exceptions

Type | Condition
--- | ---
PDFNetException | PDFNetException the PDFNet exception

#### Image2RGB(Obj)

Instantiates a new image2 rgb.

##### Declaration

    public Image2RGB(Obj image_xobject)

##### Parameters

Type | Name | Description
--- | --- | ---
Obj | image_xobject | the image_xobject

##### Exceptions

Type | Condition
--- | ---
PDFNetException | PDFNetException the PDFNet exception

### Methods

#### Dispose(bool)

##### Declaration

    [HandleProcessCorruptedStateExceptions]
    protected override void Dispose(bool A_0)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | A_0 |

##### Overrides

Filter.Dispose(bool)

### Implements

IDisposable