PngImageGetOriginalOptions Method |
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.
Namespace: Aspose.Imaging.FileFormats.PngAssembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.04
Syntaxpublic override ImageOptionsBase GetOriginalOptions()
Public Overrides Function GetOriginalOptions As ImageOptionsBase
public:
virtual ImageOptionsBase^ GetOriginalOptions() override
abstract GetOriginalOptions : unit -> ImageOptionsBase
override GetOriginalOptions : unit -> ImageOptionsBase
Return Value
Type:
ImageOptionsBaseThe options based on the original file settings.
See Also