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
파일 보기 프로젝트 열기: mapo80/iTextSharp-Monotouch 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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