public class WmfImage extends MetaImage
The Wmf Image
Constructor and Description |
---|
WmfImage()
Initializes a new instance of the
WmfImage class. |
WmfImage(int width,
int height)
Initializes a new instance of the
WmfImage class. |
Modifier and Type | Method and Description |
---|---|
int |
addRecord(WmfObject record)
Adds the record.
|
void |
cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying
DataStreamSupporter.DataStreamContainer . |
void |
crop(Rectangle rectangle)
Crops the specified rectangle.
|
int |
getBitsPerPixel()
Gets the image bits per pixel count.
|
ImageOptionsBase |
getDefaultOptions(Object[] args)
Gets the default options.
|
long |
getFileFormat()
Gets a value of file format
|
int |
getHeight()
Gets the image height.
|
int |
getInch()
Gets or sets the inch.
|
int |
getWidth()
Gets the image width.
|
boolean |
isCached()
Gets a value indicating whether object's data is cached currently and no data readig is required.
|
void |
resize(int newWidth,
int newHeight,
ImageResizeSettings settings)
Resizes the image.
|
void |
resize(int newWidth,
int newHeight,
int resizeType)
Resizes the image.
|
void |
rotateFlip(int rotateFlipType)
Rotates, flips, or rotates and flips the image.
|
void |
setInch(int value)
Gets or sets the inch.
|
void |
setPalette(IColorPalette palette,
boolean updateColors)
Sets the image palette.
|
crop, getRecords, setRecords
canLoad, canLoad, canLoad, canLoad, canSave, create, getBackgroundColor, getBounds, getContainer, getFileFormat, getFileFormat, getFittingRectangle, getFittingRectangle, getInterruptMonitor, getOriginalOptions, getPalette, getProportionalHeight, getProportionalWidth, getSize, hasBackgroundColor, isAutoAdjustPalette, load, load, load, load, load, load, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save, save, save, save, save, save, save, setAutoAdjustPalette, setBackgroundColor, setBackgroundColor, setInterruptMonitor, setPalette
getDataStreamContainer, save, save, save, save
close, dispose, getDisposed
public WmfImage()
Initializes a new instance of the WmfImage
class.
public WmfImage(int width, int height)
Initializes a new instance of the WmfImage
class.
width
- The width.height
- The height.public boolean isCached()
Gets a value indicating whether object's data is cached currently and no data readig is required.
isCached
in class DataStreamSupporter
true
if object's data is cached; otherwise, false
.com.aspose.ms.System.NotImplementedException
- Value:
true
if object's data is cached; otherwise, false
.public int getBitsPerPixel()
Gets the image bits per pixel count.
getBitsPerPixel
in class Image
com.aspose.ms.System.NotImplementedException
- Value:
The image bits per pixel count.public int getWidth()
Gets the image width.
getWidth
in interface IObjectWithBounds
getWidth
in class Image
com.aspose.ms.System.NotImplementedException
- Value:
The image width.public int getHeight()
Gets the image height.
getHeight
in interface IObjectWithBounds
getHeight
in class Image
com.aspose.ms.System.NotImplementedException
- Value:
The image height.public int getInch()
Gets or sets the inch.
Value: The inch.public void setInch(int value)
Gets or sets the inch.
Value: The inch.public long getFileFormat()
Gets a value of file format
getFileFormat
in class Image
public void cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying
DataStreamSupporter.DataStreamContainer
.
cacheData
in class DataStreamSupporter
com.aspose.ms.System.NotImplementedException
public void resize(int newWidth, int newHeight, int resizeType)
Resizes the image.
public void resize(int newWidth, int newHeight, ImageResizeSettings settings)
Resizes the image.
public void rotateFlip(int rotateFlipType)
Rotates, flips, or rotates and flips the image.
rotateFlip
in class Image
rotateFlipType
- Type of the rotate flip.com.aspose.ms.System.NotImplementedException
public void setPalette(IColorPalette palette, boolean updateColors)
Sets the image palette.
setPalette
in class Image
palette
- The palette to set.updateColors
- if set to true
colors will be updated according to the new palette; otherwise color
indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no
corresponding palette entries.com.aspose.ms.System.NotImplementedException
public ImageOptionsBase getDefaultOptions(Object[] args)
Gets the default options.
getDefaultOptions
in class Image
args
- The arguments.public void crop(Rectangle rectangle)
Crops the specified rectangle.
public int addRecord(WmfObject record)
Adds the record.
record
- The record.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.