Skip to main content

JpegImageData

Version: 12.0

cete.dynamicpdf.imaging.jpegimagedata

JpegImageData​

Represents the data of a JPEG image.

public class JpegImageData : ImageData
Public Class JpegImageData
Inherits ImageData

Inheritance: Object → Resource → ImageData → JpegImageData

Licensing Info​

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Constructors​

JpegImageData(Byte[])​

Initializes a new instance of the JpegImageData class.

public JpegImageData(Byte[] imgData)
Public Sub New (imgData As Byte())

Parameters​

Byte array containing the image data.

Licensing Info​

This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

JpegImageData(Stream)​

Initializes a new instance of the JpegImageData class.

public JpegImageData(Stream stream)
Public Sub New (stream As Stream)

Parameters​

Stream object containing the image.

Licensing Info​

This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

JpegImageData(String)​

Initializes a new instance of the JpegImageData class.

public JpegImageData(string filePath)
Public Sub New (filePath As String)

Parameters​

Physical file path of the image.

Licensing Info​

This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Properties​

Height​

Gets the height of the JPEG image.

public int Height { get; }
Public Property Height As Int32

Property Value​

Int32

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

HorizontalDpi​

Gets the horizontal dpi (also known as pixels per inch) of the image data. (Inherited from ImageData)

public float HorizontalDpi { get; }
Public Property HorizontalDpi As Single

Property Value​

Single

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Interpolate​

Gets or set a value indicating is image interpolation should be used by the PDF viewer when viewing the Image. (Inherited from ImageData)

public bool Interpolate { get; set; }
Public Property Interpolate As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

RequiredPdfObjects​

Gets the number of PDF objects required by the JPEG image data.

public int RequiredPdfObjects { get; }
Public Property RequiredPdfObjects As Int32

Property Value​

Int32

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ResourceType​

Gets the type of resource. (Inherited from ImageData)

public ResourceType ResourceType { get; }
Public Property ResourceType As ResourceType

Property Value​

ResourceType

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ScaleX​

Gets the X scale of the image.

public float ScaleX { get; }
Public Property ScaleX As Single

Property Value​

Single

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ScaleY​

Gets the Y scale of the image.

public float ScaleY { get; }
Public Property ScaleY As Single

Property Value​

Single

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Uid​

Gets the unique ID of the resource. (Inherited from Resource)

public long Uid { get; }
Public Property Uid As Int64

Property Value​

Int64

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

VerticalDpi​

Gets the vertical dpi (also known as pixels per inch) of the image data. (Inherited from ImageData)

public float VerticalDpi { get; }
Public Property VerticalDpi As Single

Property Value​

Single

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Width​

Gets the width of the JPEG image.

public int Width { get; }
Public Property Width As Int32

Property Value​

Int32

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Methods​

Draw(DocumentWriter)​

Draws the JPEG image data to the given DocumentWriter object.

public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)

Parameters​

DocumentWriter object to receive the JPEG image data's output.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Draw(OperatorWriter, Single, Single, Single, Single)​

Draws the image data to the given PageWriter object. (Inherited from ImageData)

public void Draw(OperatorWriter writer, float pdfX, float pdfY, float width, float height)
Sub Draw(writer As OperatorWriter, pdfX As Single, pdfY As Single, width As Single, height As Single)

Parameters​

PageWriter class to receive the image data's output.

X PDF coordinate for the image when drawn.

Y PDF Coordinate for the image when drawn.

Width of the image when drawn.

Height of the image when drawn.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetPage()​

Returns a Page object containing the image as a background. (Inherited from ImageData)

public Page GetPage()
Function GetPage() As Page

Returns​

A Page with the image as a background.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetPage(Single)​

Returns a Page object containing the image as a background. (Inherited from ImageData)

public Page GetPage(float margins)
Function GetPage(margins As Single) As Page

Parameters​

The margins of the page.

Returns​

A Page with the image as a background.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetPointHeight()​

Calculates the height of the image in points. (Inherited from ImageData)

public float GetPointHeight()
Function GetPointHeight() As Single

Returns​

The height of the image in points.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetPointWidth()​

Calculates the width of the image in points. (Inherited from ImageData)

public float GetPointWidth()
Function GetPointWidth() As Single

Returns​

The width of the image in points.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

IsValid(Byte[])​

Returns a value indicating if the provides file header is valid for a JPEG image.

public static bool IsValid(Byte[] header)
Shared Function IsValid(header As Byte()) As Boolean

Parameters​

Returns​

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

IsValid(String)​

Returns a value indicating if the provides file extension is valid for a JPEG image.

public static bool IsValid(string fileExtension)
Shared Function IsValid(fileExtension As String) As Boolean

Parameters​

Returns​

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.Imaging