OdgImage Class |
Namespace: Aspose.Imaging.FileFormats.OpenDocument
The OdgImage type exposes the following members.
Name | Description | |
---|---|---|
![]() | OdgImage |
Initializes a new instance of the OdgImage class.
|
Name | Description | |
---|---|---|
![]() | AutoAdjustPalette |
Gets or sets a value indicating whether automatic adjust palette.
(Inherited from Image.) |
![]() | BackgroundColor |
Gets or sets a value for the background color.
(Inherited from Image.) |
![]() | BitsPerPixel |
Gets the image bits per pixel count.
(Inherited from OdImage.) |
![]() | Bounds |
Gets the image bounds.
(Inherited from Image.) |
![]() | BufferSizeHint |
Gets or sets the buffer size hint which is defined max allowed size for all internal buffers.
(Inherited from Image.) |
![]() | Container |
Gets the Image container.
(Inherited from Image.) |
![]() | DataStreamContainer |
Gets the object's data stream.
(Inherited from DataStreamSupporter.) |
![]() | DefaultPage | Obsolete.
Gets the default page.
(Inherited from OdImage.) |
![]() | Disposed |
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.) |
![]() | FileFormat |
Gets a value of file format
(Overrides ImageFileFormat.) |
![]() | HasBackgroundColor |
Gets or sets a value indicating whether image has background color.
(Inherited from Image.) |
![]() | Height |
Gets the image height.
(Inherited from OdImage.) |
![]() | HeightF |
Gets the object height, in inches.
(Inherited from VectorImage.) |
![]() | InterruptMonitor |
Gets or sets the interrupt monitor.
(Inherited from Image.) |
![]() | IsCached |
Gets a value indicating whether object's data is cached currently and no data reading is required.
(Inherited from OdImage.) |
![]() | Metadata |
Gets the metadata.
(Inherited from OdImage.) |
![]() | PageCount |
Gets the page count.
(Inherited from OdImage.) |
![]() | 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.
(Overrides VectorMultipageImagePageExportingAction.) |
![]() | Pages |
Gets the pages.
(Overrides VectorMultipageImagePages.) |
![]() | Palette |
Gets or sets the color palette. The color palette is not used when pixels are represented directly.
(Inherited from Image.) |
![]() | Records |
Gets the records.
(Inherited from OdImage.) |
![]() ![]() | Size |
Gets the image size.
(Inherited from Image.) |
![]() | SizeF |
Gets the object size, in inches.
(Inherited from VectorImage.) |
![]() ![]() | UsePalette |
Gets a value indicating whether the image palette is used.
(Inherited from Image.) |
![]() | Width |
Gets the image width.
(Inherited from OdImage.) |
![]() | WidthF |
Gets the object width, in inches.
(Inherited from VectorImage.) |
Name | Description | |
---|---|---|
![]() | CacheData |
Caches the data and ensures no additional data loading will be performed from the underlying
DataStreamContainer.
(Inherited from VectorMultipageImage.) |
![]() ![]() | CanSave |
Determines whether image can be saved to the specified file format represented by the passed save options.
(Inherited from Image.) |
![]() ![]() | Dispose |
Disposes the current instance.
(Inherited from DisposableObject.) |
![]() | DoAfterSave |
Does the after save.
(Inherited from DataStreamSupporter.) |
![]() | DoUseRecursion |
Gets value indicating whether use recursion for synchronization.
(Inherited from Image.) |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | (Inherited from DisposableObject.) |
![]() | GetCanNotSaveMessage |
Gets the can not save message.
(Inherited from Image.) |
![]() | GetDefaultOptions |
Gets the default options.
(Overrides ImageGetDefaultOptions(Object).) |
![]() | GetFitRectangle(Rectangle) |
Gets rectangle which fits the current image.
(Inherited from Image.) |
![]() | GetFitRectangle(Rectangle, Int32) |
Gets rectangle which fits the current bitmap taking into account the pixels passed. The passed pixels array count should be equal to the fitting rectangle size.
(Inherited from Image.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetImage2Export |
Gets the image to export.
(Inherited from Image.) |
![]() | GetOriginalOptions |
Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
Save(String) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the Save(String, ImageOptionsBase) method as the second parameter.
(Inherited from Image.) |
![]() | GetType | Gets the type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnDataStreamContainerChanging |
Called when data stream container is changing.
(Inherited from DataStreamSupporter.) |
![]() | OnPaletteChanged |
Called when palette is changed.
(Inherited from Image.) |
![]() | OnPaletteChanging |
Called when palette is changing.
(Inherited from Image.) |
![]() | ReleaseManagedResources |
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
(Inherited from Image.) |
![]() | ReleaseUnmanagedResources |
Releases the unmanaged resources. Make sure no managed resources are released here, since they may have been already released.
(Inherited from DisposableObject.) |
![]() ![]() | Resize(Int32, Int32) |
Resizes the image. The default LeftTopToLeftTop is used.
(Inherited from Image.) |
![]() | Resize(Int32, Int32, ImageResizeSettings) |
Resizes the image.
(Overrides OdImageResize(Int32, Int32, ImageResizeSettings).) |
![]() ![]() | Resize(Int32, Int32, ResizeType) |
Resizes the image.
(Overrides OdImageResize(Int32, Int32, ResizeType).) |
![]() | ResizeHeightProportionally(Int32) |
Resizes the height proportionally.
(Inherited from Image.) |
![]() | ResizeHeightProportionally(Int32, ImageResizeSettings) |
Resizes the height proportionally.
(Inherited from Image.) |
![]() ![]() | ResizeHeightProportionally(Int32, ResizeType) |
Resizes the height proportionally.
(Inherited from Image.) |
![]() | ResizeWidthProportionally(Int32) |
Resizes the width proportionally.
(Inherited from Image.) |
![]() | ResizeWidthProportionally(Int32, ImageResizeSettings) |
Resizes the width proportionally.
(Inherited from Image.) |
![]() ![]() | ResizeWidthProportionally(Int32, ResizeType) |
Resizes the width proportionally.
(Inherited from Image.) |
![]() ![]() | RotateFlip |
Rotates, flips, or rotates and flips the image.
(Overrides OdImageRotateFlip(RotateFlipType).) |
![]() ![]() | Save |
Saves the image data to the underlying stream.
(Inherited from Image.) |
![]() | Save(Stream) |
Saves the object's data to the specified stream.
(Inherited from DataStreamSupporter.) |
![]() | Save(String) |
Saves the object's data to the specified file location.
(Inherited from DataStreamSupporter.) |
![]() | Save(String, Boolean) |
Saves the object's data to the specified file location.
(Inherited from DataStreamSupporter.) |
![]() ![]() | Save(Stream, ImageOptionsBase) |
Saves the image's data to the specified stream in the specified file format according to save options.
(Inherited from Image.) |
![]() ![]() | Save(String, ImageOptionsBase) |
Saves the object's data to the specified file location in the specified file format according to save options.
(Inherited from Image.) |
![]() ![]() | Save(Stream, ImageOptionsBase, Rectangle) |
Saves the image's data to the specified stream in the specified file format according to save options.
(Inherited from Image.) |
![]() ![]() | Save(String, ImageOptionsBase, Rectangle) |
Saves the object's data to the specified file location in the specified file format according to save options.
(Inherited from Image.) |
![]() | SaveData |
Saves the data.
(Inherited from VectorMultipageImage.) |
![]() | SetPalette |
Sets the image palette.
(Inherited from VectorMultipageImage.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | VerifyNotDisposed |
Verifies that the current instance is not disposed.
(Inherited from DisposableObject.) |
Name | Description | |
---|---|---|
![]() | Timeout |
The timeout to wait for synchronization
(Inherited from DataStreamSupporter.) |
[C#] string dir = "c:\\temp\\"; // Using Aspose.Imaging.Image.Load is a unified way to load image. using (Aspose.Imaging.FileFormats.OpenDocument.OdImage image = (Aspose.Imaging.FileFormats.OpenDocument.OdImage)Aspose.Imaging.Image.Load(dir + "sample.odg")) { // Cast to OdgImage Aspose.Imaging.FileFormats.OpenDocument.OdgImage odgImage = (Aspose.Imaging.FileFormats.OpenDocument.OdgImage)image; // Get all pages Aspose.Imaging.Image[] pages = odgImage.Pages; // Do some image processing }
[C#] string dir = "c:\\aspose.imaging\\issues\\net\\3635"; string inputFileName = System.IO.Path.Combine(dir, "VariousObjectsMultiPage.fodg"); string outputFileName = inputFileName + ".pdf"; using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(inputFileName)) { Aspose.Imaging.ImageOptions.OdgRasterizationOptions rasterizationOptions = new Aspose.Imaging.ImageOptions.OdgRasterizationOptions(); rasterizationOptions.BackgroundColor = Aspose.Imaging.Color.White; rasterizationOptions.PageSize = image.Size; Aspose.Imaging.ImageOptions.PdfOptions saveOptions = new Aspose.Imaging.ImageOptions.PdfOptions(); saveOptions.VectorRasterizationOptions = rasterizationOptions; image.Save(outputFileName, saveOptions); }