Class VectorMultipageImage
The Vector multipage image
public abstract class VectorMultipageImage : VectorImage, IDisposable, IObjectWithBounds, IObjectWithSizeF, IMultipageImage
- Inheritance
-
VectorMultipageImage
- Implements
- Derived
- Inherited Members
Constructors
VectorMultipageImage()
protected VectorMultipageImage()
- See Also
Properties
BitsPerPixel
Gets the image bits per pixel count.
public override int BitsPerPixel { get; }
Property Value
- int
The image bits per pixel count.
- See Also
DefaultPage
Gets the default page.
[Obsolete("Please use Pages[n]")]
public abstract Image DefaultPage { get; }
Property Value
- Image
The default page.
- 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 reading is required.
public override bool IsCached { get; }
Property Value
- bool
true
if object's data is cached; otherwise,false
.
- See Also
PageCount
Gets the page count.
public abstract int PageCount { get; }
Property Value
- int
The page count.
- See Also
PageExportingAction
Gets or sets the page exporting action. Please note that setting this method will automatically release page resources after it is executed. It will be executed just before each page is saved.
public virtual PageExportingAction PageExportingAction { get; set; }
Property Value
- PageExportingAction
The page exporting action.
- See Also
Pages
Gets the pages.
public abstract Image[] Pages { get; }
Property Value
- Image[]
The pages.
- 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
GetEmbeddedImages()
Gets the embedded images.
public override EmbeddedImage[] GetEmbeddedImages()
Returns
- EmbeddedImage[]
Array of images
- See Also
GetSerializedStream(ImageOptionsBase, Rectangle, out int)
Converts to aps.
public override Stream GetSerializedStream(ImageOptionsBase imageOptions, Rectangle clippingRectangle, out int pageNumber)
Parameters
imageOptions
ImageOptionsBaseThe image options.
clippingRectangle
RectangleThe clipping rectangle.
pageNumber
intThe page number.
Returns
- Stream
The serialized stream
- 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.
- 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.
- 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.
- See Also
SaveData(Stream)
Saves the data.
protected override void SaveData(Stream stream)
Parameters
stream
StreamThe stream to save data to.
- 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.
- See Also