C# Класс iTextSharp.text.Image

An Image is the representation of a graphic element (JPEG, PNG or GIF) that has to be inserted into the document
Наследование: Rectangle
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
absoluteX float
absoluteY float
alignment int
alt string
annotation Annotation
bpc int
colorspace int
compressionLevel int
deflated bool
dpiX int
dpiY int
imageMask Image
indentationLeft float
indentationRight float
interpolation bool
invert bool
layer IPdfOCG
mask bool
mySerialId long
originalData byte[]
originalType int
plainHeight float
plainWidth float
profile iTextSharp.text.pdf.ICC_Profile
rawData byte[]
rotationRadians float
scaleToFitLineWhenOverflow bool
scaledHeight float
scaledWidth float
spacingAfter float
spacingBefore float
template iTextSharp.text.pdf.PdfTemplate[]
transparency int[]
type int
url System.Uri

Открытые методы

Метод Описание
GetImageRotation ( ) : float
GetInstance ( Image image ) : Image

Gets an instance of an Image.

GetInstance ( PRIndirectReference iref ) : Image
GetInstance ( PdfTemplate template ) : Image

Gets an instance of an Image in raw mode.

GetInstance ( Stream s ) : Image
GetInstance ( System image, BaseColor color ) : Image

Gets an instance of an Image from a Image.

GetInstance ( System image, BaseColor color, bool forceBW ) : Image

Converts a .NET image to a Native(PNG, JPG, GIF, WMF) image

Gets an instance of an Image from a System.Drwaing.Image.

GetInstance ( Uri url ) : Image

Gets an instance of an Image.

GetInstance ( byte imgb ) : Image

Gets an instance of an Image.

GetInstance ( int width, int height, bool reverseBits, int typeCCITT, int parameters, byte data ) : Image

Gets an instance of an Image in raw mode.

GetInstance ( int width, int height, bool reverseBits, int typeCCITT, int parameters, byte data, int transparency ) : Image

GetInstance ( int width, int height, byte data, byte globals ) : Image
GetInstance ( int width, int height, int components, int bpc, byte data ) : Image

Gets an instance of an Image in raw mode.

GetInstance ( int width, int height, int components, int bpc, byte data, int transparency ) : Image

Gets an instance of an Image in raw mode.

GetInstance ( string filename ) : Image

Gets an instance of an Image.

HasAbsolutePosition ( ) : bool

Checks if the Images has to be added at an absolute position.

HasAbsoluteX ( ) : bool

Checks if the Images has to be added at an absolute X position.

HasICCProfile ( ) : bool
Image ( Image image ) : System

Constructs an Image object duplicate.

Image ( Uri url ) : System

Constructs an Image-object, using an url.

IsImgRaw ( ) : bool

Returns true if the image is a ImgRaw-object.

IsImgTemplate ( ) : bool

Returns true if the image is an ImgTemplate-object.

IsJpeg ( ) : bool

Returns true if the image is a Jpeg-object.

IsMask ( ) : bool

Returns true if this Image is a mask.

IsMaskCandidate ( ) : bool

Returns true if this Image has the requisites to be a mask.

IsNestable ( ) : bool
MakeMask ( ) : void

Make this Image a mask.

ScaleAbsolute ( float newWidth, float newHeight ) : void

Scale the image to an absolute width and an absolute height.

ScaleAbsoluteHeight ( float newHeight ) : void

Scale the image to an absolute height.

ScaleAbsoluteWidth ( float newWidth ) : void

Scale the image to an absolute width.

ScalePercent ( float percent ) : void

Scale the image to a certain percentage.

ScalePercent ( float percentX, float percentY ) : void

Scale the width and height of an image to a certain percentage.

ScaleToFit ( float fitWidth, float fitHeight ) : void

Scales the image so that it fits a certain width and height.

SetAbsolutePosition ( float absoluteX, float absoluteY ) : void

Sets the absolute position of the Image.

SetDpi ( int dpiX, int dpiY ) : void
SimplifyColorspace ( ) : void

Защищенные методы

Метод Описание
GetSerialId ( ) : long

generates new serial id

Приватные методы

Метод Описание
SimplifyColorspace ( PdfArray obj ) : PdfObject

Описание методов

GetImageRotation() публичный метод

public GetImageRotation ( ) : float
Результат float

GetInstance() публичный статический метод

Gets an instance of an Image.
public static GetInstance ( Image image ) : Image
image Image an Image
Результат Image

GetInstance() публичный статический метод

public static GetInstance ( PRIndirectReference iref ) : Image
iref iTextSharp.text.pdf.PRIndirectReference
Результат Image

GetInstance() публичный статический метод

Gets an instance of an Image in raw mode.
public static GetInstance ( PdfTemplate template ) : Image
template iTextSharp.text.pdf.PdfTemplate
Результат Image

GetInstance() публичный статический метод

public static GetInstance ( Stream s ) : Image
s Stream
Результат Image

GetInstance() публичный статический метод

Gets an instance of an Image from a Image.
public static GetInstance ( System image, BaseColor color ) : Image
image System the Image to convert
color BaseColor /// if different from null the transparency /// pixels are replaced by this color ///
Результат Image

GetInstance() публичный статический метод

Converts a .NET image to a Native(PNG, JPG, GIF, WMF) image Gets an instance of an Image from a System.Drwaing.Image.
public static GetInstance ( System image, BaseColor color, bool forceBW ) : Image
image System
color BaseColor /// if different from null the transparency /// pixels are replaced by this color ///
forceBW bool if true the image is treated as black and white
Результат Image

GetInstance() публичный статический метод

Gets an instance of an Image.
public static GetInstance ( Uri url ) : Image
url System.Uri an URL
Результат Image

GetInstance() публичный статический метод

Gets an instance of an Image.
public static GetInstance ( byte imgb ) : Image
imgb byte
Результат Image

GetInstance() публичный статический метод

Gets an instance of an Image in raw mode.
public static GetInstance ( int width, int height, bool reverseBits, int typeCCITT, int parameters, byte data ) : Image
width int the width of the image in pixels
height int the height of the image in pixels
reverseBits bool
typeCCITT int
parameters int
data byte
Результат Image

GetInstance() публичный статический метод

public static GetInstance ( int width, int height, bool reverseBits, int typeCCITT, int parameters, byte data, int transparency ) : Image
width int
height int
reverseBits bool
typeCCITT int
parameters int
data byte
transparency int
Результат Image

GetInstance() публичный статический метод

public static GetInstance ( int width, int height, byte data, byte globals ) : Image
width int
height int
data byte
globals byte
Результат Image

GetInstance() публичный статический метод

Gets an instance of an Image in raw mode.
public static GetInstance ( int width, int height, int components, int bpc, byte data ) : Image
width int the width of the image in pixels
height int the height of the image in pixels
components int 1,3 or 4 for GrayScale, RGB and CMYK
bpc int bits per component
data byte the image data
Результат Image

GetInstance() публичный статический метод

Gets an instance of an Image in raw mode.
public static GetInstance ( int width, int height, int components, int bpc, byte data, int transparency ) : Image
width int the width of the image in pixels
height int the height of the image in pixels
components int 1,3 or 4 for GrayScale, RGB and CMYK
bpc int bits per component
data byte the image data
transparency int /// transparency information in the Mask format of the /// image dictionary ///
Результат Image

GetInstance() публичный статический метод

Gets an instance of an Image.
public static GetInstance ( string filename ) : Image
filename string a filename
Результат Image

GetSerialId() защищенный статический метод

generates new serial id
protected static GetSerialId ( ) : long
Результат long

HasAbsolutePosition() публичный метод

Checks if the Images has to be added at an absolute position.
public HasAbsolutePosition ( ) : bool
Результат bool

HasAbsoluteX() публичный метод

Checks if the Images has to be added at an absolute X position.
public HasAbsoluteX ( ) : bool
Результат bool

HasICCProfile() публичный метод

public HasICCProfile ( ) : bool
Результат bool

Image() публичный метод

Constructs an Image object duplicate.
public Image ( Image image ) : System
image Image another Image object.
Результат System

Image() публичный метод

Constructs an Image-object, using an url.
public Image ( Uri url ) : System
url System.Uri the URL where the image can be found.
Результат System

IsImgRaw() публичный метод

Returns true if the image is a ImgRaw-object.
public IsImgRaw ( ) : bool
Результат bool

IsImgTemplate() публичный метод

Returns true if the image is an ImgTemplate-object.
public IsImgTemplate ( ) : bool
Результат bool

IsJpeg() публичный метод

Returns true if the image is a Jpeg-object.
public IsJpeg ( ) : bool
Результат bool

IsMask() публичный метод

Returns true if this Image is a mask.
public IsMask ( ) : bool
Результат bool

IsMaskCandidate() публичный метод

Returns true if this Image has the requisites to be a mask.
public IsMaskCandidate ( ) : bool
Результат bool

IsNestable() публичный метод

public IsNestable ( ) : bool
Результат bool

MakeMask() публичный метод

Make this Image a mask.
public MakeMask ( ) : void
Результат void

ScaleAbsolute() публичный метод

Scale the image to an absolute width and an absolute height.
public ScaleAbsolute ( float newWidth, float newHeight ) : void
newWidth float the new width
newHeight float the new height
Результат void

ScaleAbsoluteHeight() публичный метод

Scale the image to an absolute height.
public ScaleAbsoluteHeight ( float newHeight ) : void
newHeight float the new height
Результат void

ScaleAbsoluteWidth() публичный метод

Scale the image to an absolute width.
public ScaleAbsoluteWidth ( float newWidth ) : void
newWidth float the new width
Результат void

ScalePercent() публичный метод

Scale the image to a certain percentage.
public ScalePercent ( float percent ) : void
percent float the scaling percentage
Результат void

ScalePercent() публичный метод

Scale the width and height of an image to a certain percentage.
public ScalePercent ( float percentX, float percentY ) : void
percentX float the scaling percentage of the width
percentY float the scaling percentage of the height
Результат void

ScaleToFit() публичный метод

Scales the image so that it fits a certain width and height.
public ScaleToFit ( float fitWidth, float fitHeight ) : void
fitWidth float the width to fit
fitHeight float the height to fit
Результат void

SetAbsolutePosition() публичный метод

Sets the absolute position of the Image.
public SetAbsolutePosition ( float absoluteX, float absoluteY ) : void
absoluteX float
absoluteY float
Результат void

SetDpi() публичный метод

public SetDpi ( int dpiX, int dpiY ) : void
dpiX int
dpiY int
Результат void

SimplifyColorspace() публичный метод

public SimplifyColorspace ( ) : void
Результат void

Описание свойств

absoluteX защищенное свойство

This is the absolute X-position of the image.
protected float absoluteX
Результат float

absoluteY защищенное свойство

This is the absolute Y-position of the image.
protected float absoluteY
Результат float

alignment защищенное свойство

The alignment of the Image.
protected int alignment
Результат int

alt защищенное свойство

Text that can be shown instead of the image.
protected string alt
Результат string

annotation защищенное свойство

if the annotation is not null the image will be clickable.
protected Annotation,iTextSharp.text annotation
Результат Annotation

bpc защищенное свойство

this is the bits per component of the raw image. It also flags a CCITT image.
protected int bpc
Результат int

colorspace защищенное свойство

this is the colorspace of a jpeg-image.
protected int colorspace
Результат int

compressionLevel защищенное свойство

protected int compressionLevel
Результат int

deflated защищенное свойство

protected bool deflated
Результат bool

dpiX защищенное свойство

Holds value of property dpiX.
protected int dpiX
Результат int

dpiY защищенное свойство

Holds value of property dpiY.
protected int dpiY
Результат int

imageMask защищенное свойство

protected Image imageMask
Результат Image

indentationLeft защищенное свойство

protected float indentationLeft
Результат float

indentationRight защищенное свойство

protected float indentationRight
Результат float

interpolation защищенное свойство

Holds value of property interpolation.
protected bool interpolation
Результат bool

invert защищенное свойство

protected bool invert
Результат bool

layer защищенное свойство

protected IPdfOCG layer
Результат IPdfOCG

mask защищенное свойство

protected bool mask
Результат bool

mySerialId защищенное свойство

protected long mySerialId
Результат long

originalData защищенное свойство

protected byte[] originalData
Результат byte[]

originalType защищенное свойство

protected int originalType
Результат int

plainHeight защищенное свойство

This is the width of the image without rotation.
protected float plainHeight
Результат float

plainWidth защищенное свойство

This is the width of the image without rotation.
protected float plainWidth
Результат float

profile защищенное свойство

ICC Profile attached
protected ICC_Profile,iTextSharp.text.pdf profile
Результат iTextSharp.text.pdf.ICC_Profile

rawData защищенное свойство

The raw data of the image.
protected byte[] rawData
Результат byte[]

rotationRadians защищенное свойство

This is the rotation of the image.
protected float rotationRadians
Результат float

scaleToFitLineWhenOverflow защищенное свойство

protected bool scaleToFitLineWhenOverflow
Результат bool

scaledHeight защищенное свойство

This is the original height of the image taking rotation into account.
protected float scaledHeight
Результат float

scaledWidth защищенное свойство

This is the scaled width of the image taking rotation into account.
protected float scaledWidth
Результат float

spacingAfter защищенное свойство

protected float spacingAfter
Результат float

spacingBefore защищенное свойство

protected float spacingBefore
Результат float

template защищенное свойство

The template to be treated as an image.
protected PdfTemplate[],iTextSharp.text.pdf template
Результат iTextSharp.text.pdf.PdfTemplate[]

transparency защищенное свойство

this is the transparency information of the raw image
protected int[] transparency
Результат int[]

type защищенное свойство

The imagetype.
protected int type
Результат int

url защищенное свойство

The URL of the image.
protected Uri,System url
Результат System.Uri