cete.dynamicpdf.imaging.gifimagedata
GifImageData
- Namespace: ceTe.DynamicPDF.Imaging
- Assemblies: ceTe.DynamicPDF.40.dll
Represents the data of a GIF image.
public class GifImageData : ImageData
Public Class GifImageData
Inherits ImageData
Inheritance: Object → Resource → ImageData → GifImageData
Licensing
This class is a DynamicPDF Generator Community Edition feature.
Constructors
GifImageData(Stream)
Initializes a new instance of the GifImageData class.
public GifImageData(Stream stream)
Public Sub New (stream As Stream)
Parameters
- stream: Stream
Stream object containing the image.
GifImageData(String)
Initializes a new instance of the GifImageData class.
public GifImageData(string filePath)
Public Sub New (filePath As String)
Parameters
- filePath: String
Physical file path of the image.
Properties
Height
Gets the height of the GIF image.
public int Height { get; }
Public Property Height As Int32
Property Value
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
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
RequiredPdfObjects
Gets the number of PDF objects required by the GIF image data.
public int RequiredPdfObjects { get; }
Public Property RequiredPdfObjects As Int32
Property Value
ResourceType
Gets the type of resource. (Inherited from ImageData)
public ResourceType ResourceType { get; }
Public Property ResourceType As ResourceType
Property Value
ScaleX
Gets the X scale of the image.
public float ScaleX { get; }
Public Property ScaleX As Single
Property Value
ScaleY
Gets the Y scale of the image.
public float ScaleY { get; }
Public 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. (Inherited from ImageData)
public float VerticalDpi { get; }
Public Property VerticalDpi As Single
Property Value
Width
Gets the width of the GIF image.
public int Width { get; }
Public Property Width As Int32
Property Value
Methods
Draw(DocumentWriter)
Draws the GIF image data to the given DocumentWriter object.
public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)
Parameters
- writer: DocumentWriter
DocumentWriter object to receive the GIF image data's output.
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
- 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 .
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.
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
- 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. (Inherited from ImageData)
public float GetPointHeight()
Function GetPointHeight() As Single
Returns
The height of the image in points.
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.
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.
IsValid(Byte[])
Returns a value indicating if the provides file header is valid for a GIF image.
public static bool IsValid(Byte[] header)
Shared Function IsValid(header As Byte()) As Boolean
Parameters
- header: Byte[]
Returns
IsValid(String)
Returns a value indicating if the provides file extension is valid for a GIF image.
public static bool IsValid(string fileExtension)
Shared Function IsValid(fileExtension As String) As Boolean
Parameters
- fileExtension: String
Returns
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 .