public final class Image extends BaseParagraph
Constructor and Description |
---|
Image()
default constructor
|
Modifier and Type | Method and Description |
---|---|
static InputStream |
convertToJpeg(InputStream value)
Try to convert to stream with bmp/png/gif/tiff image to stream with JPG format image.
|
Object |
deepClone()
Clone the image.
|
BufferedImage |
getBufferedImage()
Gets the java awt image.
|
String |
getFile()
Gets the image file.
|
int |
getFileType()
Gets the image file type.
|
double |
getFixHeight()
Gets the image height.
|
double |
getFixWidth()
Gets the image width.
|
double |
getImageScale()
Gets the image scale.
|
InputStream |
getImageStream()
Gets the image stream.
|
static String |
getMimeType(com.aspose.ms.System.Drawing.Image i) |
TextFragment |
getTitle()
Gets a string value that indicates the title of the image.
|
boolean |
isApplyResolution()
Gets or sets a boolean value that indicates whether the image use resolution during generation
|
boolean |
isBlackWhite()
Gets a boolean value that indicates whether the image is forced to be black-and-white.
|
void |
setApplyResolution(boolean value)
Gets or sets a boolean value that indicates whether the image use resolution during generation
|
void |
setBlackWhite(boolean value)
Sets a boolean value that indicates whether the image is forced to be black-and-white.
|
void |
setBufferedImage(BufferedImage value)
Sets the java awt image.
|
void |
setFile(String value)
Sets the image file.
|
void |
setFileType(int value)
Sets the image file type.
|
void |
setFixHeight(double value)
Sets the image height.
|
void |
setFixWidth(double value)
Sets the image width.
|
void |
setImageScale(double value)
Sets the image scale.
|
void |
setImageStream(InputStream value)
Sets the image stream.
|
void |
setTitle(TextFragment value)
Sets a string value that indicates the title of the image.
|
getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public String getFile()
Gets the image file.
public void setFile(String value)
Sets the image file.
value
- String valuepublic double getFixWidth()
Gets the image width.
public void setFixWidth(double value)
Sets the image width.
value
- double valuepublic double getFixHeight()
Gets the image height.
public void setFixHeight(double value)
Sets the image height.
value
- double valuepublic int getFileType()
Gets the image file type.
ImageFileType
public void setFileType(int value)
Sets the image file type.
value
- int valueImageFileType
public double getImageScale()
Gets the image scale.
public void setImageScale(double value)
Sets the image scale.
value
- double valuepublic InputStream getImageStream()
Gets the image stream.
public void setImageStream(InputStream value)
Sets the image stream.
value
- InputStream valuepublic boolean isApplyResolution()
Gets or sets a boolean value that indicates whether the image use resolution during generation
public void setApplyResolution(boolean value)
Gets or sets a boolean value that indicates whether the image use resolution during generation
value
- boolean valuepublic boolean isBlackWhite()
Gets a boolean value that indicates whether the image is forced to be black-and-white. If TIFF image of CCITT subformat is used, this property must be set to true.
public void setBlackWhite(boolean value)
Sets a boolean value that indicates whether the image is forced to be black-and-white. If TIFF image of CCITT subformat is used, this property must be set to true.
value
- boolean valuepublic TextFragment getTitle()
Gets a string value that indicates the title of the image.
public void setTitle(TextFragment value)
Sets a string value that indicates the title of the image.
value
- TextFragment valuepublic static String getMimeType(com.aspose.ms.System.Drawing.Image i)
public static InputStream convertToJpeg(InputStream value)
value
- InputStream instancepublic Object deepClone()
Clone the image.
deepClone
in interface com.aspose.ms.System.ICloneable
deepClone
in class BaseParagraph
public void setBufferedImage(BufferedImage value)
Sets the java awt image.
value
- BufferedImage objectpublic BufferedImage getBufferedImage()
Gets the java awt image.