public final class ImageInfo extends Object
Modifier and Type | Field and Description |
---|---|
int |
_CcittSubFormat |
int |
_ImageFileType
Gets or sets a
ImageFileType object that indicates the image type. |
int |
BitsPerComponent |
float |
CcittImageHeight |
float |
CcittImageWidth |
int |
ComponentNumber |
String |
DefaultFile |
String |
File |
float |
FixHeight |
float |
FixWidth |
BorderInfo |
ImageBorder
Gets or sets a borderinfo value that indicates the border information of the image.
|
boolean |
IsBlack1
Gets or sets a bool value that indicates whether black is considered as 1 in an image.
|
boolean |
IsBlackWhite |
boolean |
IsImageNotFoundErrorIgnored |
int |
OpenType
Gets or sets a
ImageOpenType that indicates the image open type. |
TextInfo |
TextInfo
Gets or sets a
TextInfo object that indicates the text info of the image Title . |
int |
TiffFrame
Gets or sets an int value that indicates the valid frame of the TIFF image.
|
String |
Title
Gets or sets a string value that indicates the title of the image.
|
Constructor and Description |
---|
ImageInfo()
Initializes a new instance of the
ImageInfo class. |
Modifier and Type | Method and Description |
---|---|
int |
getAlignment() |
Color |
getBackgroundColor()
Color that is used as background for stencil mask image.
|
InputStream |
getImageStream()
Gets or sets a stream that indicates the image stream.
|
com.aspose.ms.System.IO.Stream |
getImageStreamInternal() |
byte[] |
getMemoryData() |
Color |
getPatternColor()
Color that is used for painting of image pattern
|
com.aspose.ms.System.Drawing.Color |
getPatternColorInternal() |
BufferedImage |
getSystemImage()
Gets or sets a system
System.Drawing.Image object which is used to create a Aspose Aspose.Pdf.Generator.Image object. |
com.aspose.ms.System.Drawing.Image |
getSystemImageInternal() |
boolean |
isAllFramesInNewPage()
Gets or sets a bool value that indicates if all frames in TIFF images be rendered in new page.
|
boolean |
isFixImgHeightSettedInXML()
Gets or sets a bool value that indicates the fixed height of the image is Setted in xml file.
|
boolean |
isFixImgWidthSettedInXML()
Gets or sets a bool value that indicates the fixed width of the image is setted in xml file
|
boolean |
isStencilMask()
Indicates whether this image is stencil mask.
|
void |
setAlignment(int value) |
void |
setAllFramesInNewPage(boolean value) |
void |
setBackgroundColor(Color value) |
void |
setFixImgHeightSettedInXML(boolean value) |
void |
setFixImgWidthSettedInXML(boolean value) |
void |
setImageStream(InputStream value) |
void |
setImageStreamInternal(com.aspose.ms.System.IO.Stream value) |
void |
setMemoryData(byte[] value) |
void |
setPatternColor(Color value) |
void |
setPatternColorInternal(com.aspose.ms.System.Drawing.Color value) |
void |
setStencilMask(boolean value) |
void |
setSystemImage(BufferedImage value) |
void |
setSystemImageInternal(com.aspose.ms.System.Drawing.Image value) |
public int BitsPerComponent
public float CcittImageHeight
public float CcittImageWidth
public int _CcittSubFormat
public int ComponentNumber
public String File
public String DefaultFile
public float FixWidth
public float FixHeight
public boolean IsBlackWhite
public boolean IsImageNotFoundErrorIgnored
public boolean IsBlack1
Gets or sets a bool value that indicates whether black is considered as 1 in an image.
public int TiffFrame
Gets or sets an int value that indicates the valid frame of the TIFF image. The default value is 0. Used for TIFF image only. If this property is set to -1, all frames of the tiff images will be added into the PDF document.
public int OpenType
Gets or sets a ImageOpenType
that indicates the image open type.
URL is supported in Image.ImageInfo.File. Memory image can is supported by Image.ImageInfo.ImageStream.
You need not set OpenType any more.
public TextInfo TextInfo
Gets or sets a TextInfo
object that indicates the text info of the image Title
.
public String Title
Gets or sets a string value that indicates the title of the image.
public BorderInfo ImageBorder
Gets or sets a borderinfo value that indicates the border information of the image.
public int _ImageFileType
Gets or sets a ImageFileType
object that indicates the image type. If this property
is not set, the image type will be get from the file name.
public int getAlignment()
public void setAlignment(int value)
public InputStream getImageStream()
Gets or sets a stream that indicates the image stream.
[Java] InputStream fs = new FileInputStream("logo.jpg"); Pdf pdf = new Pdf(); Section sec = pdf.getSections().add(); Image img = new Image(); img.getImageInfo().setImageFileType ( ImageFileType.Jpeg); img.getImageInfo().setImageStream ( fs); sec.getParagraphs().add(img); pdf.save("test.pdf"); fs.close();
public com.aspose.ms.System.IO.Stream getImageStreamInternal()
public void setImageStream(InputStream value)
public void setImageStreamInternal(com.aspose.ms.System.IO.Stream value)
public BufferedImage getSystemImage()
Gets or sets a system System.Drawing.Image
object which is used to create a Aspose Aspose.Pdf.Generator.Image
object.
[C#] System.Drawing.Image sysimg = System.Drawing.Image.FromFile("test.jpg"); Pdf pdf1 = new Pdf(); Section sec1 = pdf1.Sections.Add(); Aspose.Pdf.Generator.Image img1 = new Aspose.Pdf.Generator.Image(); img1.ImageInfo.SystemImage = sysimg; sec1.Paragraphs.Add(img1); pdf1.Save("test.pdf"); sysimg.Dispose(); [VB.NET] Dim sysimg As System.Drawing.Image = System.Drawing.Image.FromFile("test.jpg") Dim pdf1 As Pdf = New Pdf() Dim sec1 As Section = pdf1.Sections.Add() Dim img1 As Aspose.Pdf.Generator.Image = New Aspose.Pdf.Generator.Image() img1.ImageInfo.SystemImage = sysimg sec1.Paragraphs.Add(img1) pdf1.Save("test.pdf") sysimg.Dispose()
public com.aspose.ms.System.Drawing.Image getSystemImageInternal()
public void setSystemImage(BufferedImage value)
public void setSystemImageInternal(com.aspose.ms.System.Drawing.Image value)
public byte[] getMemoryData()
public void setMemoryData(byte[] value)
public boolean isFixImgWidthSettedInXML()
Gets or sets a bool value that indicates the fixed width of the image is setted in xml file
public void setFixImgWidthSettedInXML(boolean value)
public boolean isFixImgHeightSettedInXML()
Gets or sets a bool value that indicates the fixed height of the image is Setted in xml file.
public void setFixImgHeightSettedInXML(boolean value)
public boolean isAllFramesInNewPage()
Gets or sets a bool value that indicates if all frames in TIFF images be rendered in new page.
public void setAllFramesInNewPage(boolean value)
public boolean isStencilMask()
Indicates whether this image is stencil mask.
public void setStencilMask(boolean value)
public Color getBackgroundColor()
Color that is used as background for stencil mask image.
public void setBackgroundColor(Color value)
public Color getPatternColor()
Color that is used for painting of image pattern
public com.aspose.ms.System.Drawing.Color getPatternColorInternal()
public void setPatternColor(Color value)
public void setPatternColorInternal(com.aspose.ms.System.Drawing.Color value)
Copyright © 2014 Aspose. All Rights Reserved.