public class CmxRasterizationOptions extends VectorRasterizationOptions
the CMX exporter options.
VectorRasterizationOptions
Constructor and Description |
---|
CmxRasterizationOptions()
Initializes a new instance of the
CmxRasterizationOptions class. |
Modifier and Type | Method and Description |
---|---|
int |
getPositioning()
Gets the positioning.
|
void |
setPositioning(int value)
Sets the positioning.
|
copyTo, getBackgroundColor, getBorderX, getBorderY, getCenterDrawing, getDrawColor, getPageHeight, getPageSize, getPageWidth, getSmoothingMode, getTextRenderingHint, setBackgroundColor, setBorderX, setBorderY, setCenterDrawing, setDrawColor, setPageHeight, setPageSize, setPageWidth, setSmoothingMode, setTextRenderingHint
deepClone, getBufferSizeHint, getMultiPageOptions, getPalette, getProgressEventHandler, getResolutionSettings, getSource, getVectorRasterizationOptions, getXmpData, setBufferSizeHint, setMultiPageOptions, setPalette, setProgressEventHandler, setResolutionSettings, setSource, setVectorRasterizationOptions, setXmpData
close, dispose, getDisposed
public CmxRasterizationOptions()
Initializes a new instance of the CmxRasterizationOptions
class.
public final int getPositioning()
Gets the positioning.
public final void setPositioning(int value)
Sets the positioning.
value
- the positioning.The following example shows how to set a memory limit when loading a CMX image. The memory limit is the maximum allowed size (in megabytes) for all internal buffers.
String workDir = "c:\\temp\\"; // Setting a memory limit of 10 megabytes for target loaded image com.aspose.imaging.LoadOptions loadOptions = new com.aspose.imaging.LoadOptions(); loadOptions.setBufferSizeHint(10); com.aspose.imaging.Image image = com.aspose.imaging.Image.load(workDir + "example.cmx", loadOptions); try { com.aspose.imaging.imageoptions.PngOptions options = new com.aspose.imaging.imageoptions.PngOptions(); com.aspose.imaging.imageoptions.CmxRasterizationOptions rasterizationOptions = new com.aspose.imaging.imageoptions.CmxRasterizationOptions(); rasterizationOptions.setTextRenderingHint(com.aspose.imaging.TextRenderingHint.SingleBitPerPixel); rasterizationOptions.setSmoothingMode(com.aspose.imaging.SmoothingMode.AntiAlias); rasterizationOptions.setPositioning(com.aspose.imaging.imageoptions.PositioningTypes.DefinedByDocument); options.setVectorRasterizationOptions(rasterizationOptions); image.save(workDir + "output.png", options); } finally { image.close(); }