Class CdrImagePage
- Namespace
- Aspose.Imaging.FileFormats.Cdr
- Assembly
- Aspose.Imaging.dll
The Cdr image page
public class CdrImagePage : VectorImage, IDisposable, IObjectWithBounds, IObjectWithSizeF, ICdrImage
- Inheritance
-
CdrImagePage
- Implements
- Inherited Members
Properties
BitsPerPixel
Gets the image bits per pixel count.
public override int BitsPerPixel { get; }
Property Value
- int
The image bits per pixel count.
Exceptions
- See Also
CdrDocument
Gets or sets the CDR document.
public CdrDocument CdrDocument { get; }
Property Value
- CdrDocument
The CDR document.
- See Also
FileFormat
Gets a value of file format
public override FileFormat FileFormat { get; }
Property Value
- See Also
Height
Gets the image height.
public override int Height { get; }
Property Value
- int
The image height.
- See Also
IsCached
Gets a value indicating whether object's data is cached currently and no data readig is required.
public override bool IsCached { get; }
Property Value
- bool
true
if object's data is cached; otherwise,false
.
- See Also
PageNumber
Gets the page number.
public int PageNumber { get; }
Property Value
- int
The page number.
- See Also
ParentImage
Gets the parent image.
public CdrImage ParentImage { get; }
Property Value
- CdrImage
The parent image.
- See Also
Width
Gets the image width.
public override int Width { get; }
Property Value
- int
The image width.
- See Also
Methods
CacheData()
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
public override void CacheData()
- See Also
GetDefaultOptions(object[])
Gets the default options.
public override ImageOptionsBase GetDefaultOptions(object[] args)
Parameters
args
object[]The arguments.
Returns
- ImageOptionsBase
Default options
- See Also
Resize(int, int, ImageResizeSettings)
Resizes the image.
public override void Resize(int newWidth, int newHeight, ImageResizeSettings settings)
Parameters
newWidth
intThe new width.
newHeight
intThe new height.
settings
ImageResizeSettingsThe resize settings.
Exceptions
- See Also
Resize(int, int, ResizeType)
Resizes the image.
public override void Resize(int newWidth, int newHeight, ResizeType resizeType)
Parameters
newWidth
intThe new width.
newHeight
intThe new height.
resizeType
ResizeTypeThe resize type.
Exceptions
- See Also
RotateFlip(RotateFlipType)
Rotates, flips, or rotates and flips the image.
public override void RotateFlip(RotateFlipType rotateFlipType)
Parameters
rotateFlipType
RotateFlipTypeType of the rotate flip.
Exceptions
- See Also
SaveData(Stream)
Saves the data.
protected override void SaveData(Stream stream)
Parameters
stream
StreamThe stream to save data to.
Exceptions
- See Also
SetPalette(IColorPalette, bool)
Sets the image palette.
public override void SetPalette(IColorPalette palette, bool updateColors)
Parameters
palette
IColorPaletteThe palette to set.
updateColors
boolif 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.
Exceptions
- See Also