ImageCreate Method (SDFDoc, Byte, Int32, Int32, Int32, ColorSpace, ImageInputFilter) |
Directly embed the image that is already compressed using the Image::InputFilter
format. The function can be used to pass-through pre-compressed image data.
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public static Image Create(
SDFDoc doc,
byte[] image_data,
int width,
int height,
int bpc,
ColorSpace color_space,
ImageInputFilter input_format
)
Public Shared Function Create (
doc As SDFDoc,
image_data As Byte(),
width As Integer,
height As Integer,
bpc As Integer,
color_space As ColorSpace,
input_format As ImageInputFilter
) As Image
public:
static Image^ Create(
[InAttribute] SDFDoc^ doc,
[InAttribute] array<unsigned char>^ image_data,
[InAttribute] int width,
[InAttribute] int height,
[InAttribute] int bpc,
[InAttribute] ColorSpace^ color_space,
[InAttribute] ImageInputFilter input_format
)
pdftron.PDF.Image.Create = function(doc, image_data, width, height, bpc, color_space, input_format);
Parameters
- doc
- Type: pdftron.SDFSDFDoc
A document to which the image should be added. The 'Doc' object
can be obtained using Obj::GetDoc() or PDFDoc::GetSDFDoc().
- image_data
- Type: SystemByte
The stream or buffer containing compressed image data.
The compression format must match the input_format parameter.
- width
- Type: SystemInt32
The width of the image, in samples.
- height
- Type: SystemInt32
The height of the image, in samples.
- bpc
- Type: SystemInt32
The number of bits used to represent each color component.
- color_space
- Type: pdftron.PDFColorSpace
The color space in which image samples are specified.
- input_format
- Type: pdftron.PDFImageInputFilter
Image::InputFilter describing the format of pre-compressed
image data.
Return Value
Type:
Image PDF::Image object representing the embedded image.
See Also