Class Image
Inheritance
System.Object
Image
Assembly: IronPdf.dll
Syntax
public abstract class Image : Object
Constructors
Image(String, String, Int32, Int32)
Declaration
protected Image(string contentType, string extension, int width, int height)
Parameters
Type |
Name |
Description |
System.String |
contentType |
|
System.String |
extension |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
Properties
ContentType
Declaration
public string ContentType { get; }
Property Value
Type |
Description |
System.String |
|
Extension
Declaration
public string Extension { get; }
Property Value
Type |
Description |
System.String |
|
Height
Declaration
public int Height { get; }
Property Value
Type |
Description |
System.Int32 |
|
Width
Declaration
public int Width { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
GetContent(CancellationToken)
Declaration
public abstract byte[] GetContent(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Byte[] |
|
GetContentAsync(CancellationToken)
Declaration
public abstract Task<byte[]> GetContentAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Byte[]> |
|
ToDataUrl(CancellationToken)
Declaration
public string ToDataUrl(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.String |
|
ToDataUrlAsync(CancellationToken)
Declaration
public Task<string> ToDataUrlAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|