cete.dynamicpdf.imaging.imagedata
ImageData
- Namespace: ceTe.DynamicPDF.Imaging
- Assemblies: ceTe.DynamicPDF.40.dll
Represents the data of an image.
public abstract class ImageData : Resource
Public MustInherit Class ImageData
Inherits Resource
Inheritance: Object → Resource → ImageData
Derived: BitmapImageData, GifImageData, Jpeg2000ImageData, JpegImageData, PngImageData, TiffImageData
Licensing
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:
- DynamicPDF Generator for .NET Professional Edition
- DynamicPDF Generator for .NET Enterprise Edition
- DynamicPDF Merger for .NET Professional Edition
- DynamicPDF Merger for .NET Enterprise Edition
- DynamicPDF ReportWriter for .NET Professional Edition
- DynamicPDF ReportWriter for .NET Enterprise Edition
- DynamicPDF Core Suite for .NET Professional Edition
- DynamicPDF Core Suite for .NET Enterprise Edition
Properties
Height
Gets the pixel height of the image data.
public abstract int Height { get; }
Public MustOverride Property Height As Int32
Property Value
HorizontalDpi
Gets the horizontal dpi (also known as pixels per inch) of the image data.
public float HorizontalDpi { get; }
Public Property HorizontalDpi As Single
Property Value
Interpolate
Gets or set a value indicating is image interpolation should be used by the PDF viewer when viewing the Image.
public bool Interpolate { get; set; }
Public Property Interpolate As Boolean
Property Value
RequiredPdfObjects
Gets the number of PDF objects required by the resource. (Inherited from Resource)
public int RequiredPdfObjects { get; }
Public Property RequiredPdfObjects As Int32
Property Value
ResourceType
Gets the type of resource.
public ResourceType ResourceType { get; }
Public Property ResourceType As ResourceType
Property Value
ScaleX
Gets the X scale of the image data.
public abstract float ScaleX { get; }
Public MustOverride Property ScaleX As Single
Property Value
ScaleY
Gets the Y scale of the image data.
public abstract float ScaleY { get; }
Public MustOverride Property ScaleY As Single
Property Value
Uid
Gets the unique ID of the resource. (Inherited from Resource)
public long Uid { get; }
Public Property Uid As Int64
Property Value
VerticalDpi
Gets the vertical dpi (also known as pixels per inch) of the image data.
public float VerticalDpi { get; }
Public Property VerticalDpi As Single
Property Value
Width
Gets the pixel width of the image data.
public abstract int Width { get; }
Public MustOverride Property Width As Int32
Property Value
Methods
Draw(DocumentWriter)
Draws the resource to the given DocumentWriter object. (Inherited from Resource)
public abstract void Draw(DocumentWriter writer)
MustOverride Sub Draw(writer As DocumentWriter)
Parameters
- writer: DocumentWriter
DocumentWriter object to receive the resource's output.
Draw(OperatorWriter, Single, Single, Single, Single)
Draws the image data to the given PageWriter object.
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
- writer: OperatorWriter
PageWriter class to receive the image data's output.
- pdfX: Single
X PDF coordinate for the image when drawn.
- pdfY: Single
Y PDF Coordinate for the image when drawn.
- width: Single
Width of the image when drawn.
- height: Single
Height of the image when drawn.
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
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
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 .
GetImage(Byte[])
Returns an ImageData of the correct type for the given byte array.
public static ImageData GetImage(Byte[] data)
Shared Function GetImage(data As Byte()) As ImageData
Parameters
- data: Byte[]
Byte array containing the image data.
Returns
GetImage(Stream)
Returns an ImageData of the correct type for the given Stream .
public static ImageData GetImage(Stream stream)
Shared Function GetImage(stream As Stream) As ImageData
Parameters
- stream: Stream
Stream object containing the image data.
Returns
GetImage(String)
Returns an ImageData of the correct type for the given physical file path.
public static ImageData GetImage(string filePath)
Shared Function GetImage(filePath As String) As ImageData
Parameters
- filePath: String
Physical file path of the image data.
Returns
GetPage()
Returns a Page object containing the image as a background.
public Page GetPage()
Function GetPage() As Page
Returns
A Page with the image as a background.
GetPage(Single)
Returns a Page object containing the image as a background.
public Page GetPage(float margins)
Function GetPage(margins As Single) As Page
Parameters
- margins: Single
The margins of the page.
Returns
A Page with the image as a background.
GetPointHeight()
Calculates the height of the image in points.
public float GetPointHeight()
Function GetPointHeight() As Single
Returns
The height of the image in points.
GetPointWidth()
Calculates the width of the image in points.
public float GetPointWidth()
Function GetPointWidth() As Single
Returns
The width of the image in points.
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.
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 .