SetaPDF_Core_Image_Jpeg2000 Class representing an JPEG2000 image

File: /SetaPDF/Core/Image/Jpeg2000.php

Class hierarchy

Summary

Properties

$_bitsPerComponent

Bits per component

$_colorSpace

The image type specific colorspace

$_dpiX

protected integer SetaPDF_Core_Image_Jpeg2000::$_dpiX = 0

Dots-per-inch in the X direction

$_dpiY

protected integer SetaPDF_Core_Image_Jpeg2000::$_dpiY = 0

Dots-per-inch in the Y direction

$_height

The pixel height

$_inverted

protected boolean todo Use it SetaPDF_Core_Image_Jpeg2000::$_inverted = false

Flag for color inversion

$_opacityAvailable

$_width

The pixel width


Static Methods

get()

Get an image by a reader.

Parameters
$reader : SetaPDF_Core_Reader_ReaderInterface

The reader instance

Exceptions

Throws SetaPDF_Exception_NotImplemented If the image type is not supported (supported types: JPEG, PNG, JPEG2000).

getByPath()

static public SetaPDF_Core_Image SetaPDF_Core_Image::getByPath ( string $path )

Get an image by a path.

Parameters
$path : string

The path to the image

getType()

Get an image type by a reader.

Parameters
$reader : SetaPDF_Core_Reader_ReaderInterface
 

Methods

__construct()

The constructor.

Parameters
$reader : SetaPDF_Core_Reader_ReaderInterface
 

_process()

protected void SetaPDF_Core_Image_Jpeg2000::_process ( void )

Process the image data.

See

_readBoxHeader()

protected void SetaPDF_Core_Image_Jpeg2000::_readBoxHeader ( mixed &$boxLength, mixed &$boxType )

Reads the header information for the following box.

Parameters
$boxLength : mixed

The BoxLength will be written in this variable.

$boxType : mixed

The BoxType will be written in this variable.

Exceptions

Throws SetaPDF_Exception_NotImplemented

getBitsPerComponent()

public number SetaPDF_Core_Image::getBitsPerComponent ( void )

Get the bits per component value.

getColorSpace()

public number SetaPDF_Core_Image::getColorSpace ( void )

Get the image type specific colorspace.

getDpiX()

public number SetaPDF_Core_Image::getDpiX ( void )

Get the dots-per-inch in the X direction.

getDpiY()

public number SetaPDF_Core_Image::getDpiY ( void )

Get the dots-per-inch in the Y direction.

getHeight()

public number SetaPDF_Core_Image::getHeight ( [ float $width = null ] )

Get the height.

Parameters
$width : float

Value for keeping the aspect ratio

getWidth()

public number SetaPDF_Core_Image::getWidth ( [ float $height = null ] )

Get the width.

Parameters
$height : float

Value for keeping the aspect ratio

toXObject()

Converts the JPEG 2000 image to an external object.

Parameters
$document : SetaPDF_Core_Document
 
See