PngOptions.VectorRasterizationOptions will not work

Hello
I load this Gif and want to save it as Png with anti alias or high quality options, which will not work:
Setup.gif (3.8 KB)

Dim ASPSaveSetPNG() As New Aspose.Imaging.ImageOptions.PngOptions

Dim MyOptions As New Aspose.Imaging.ImageOptions.VectorRasterizationOptions

Now using any of the following options will not make a difference and the output is exactly the same!

MyOptions.SmoothingMode = Aspose.Imaging.SmoothingMode.Default
or
MyOptions.SmoothingMode = Aspose.Imaging.SmoothingMode.HighQuality
or
MyOptions.SmoothingMode = Aspose.Imaging.SmoothingMode.AntiAlias
or
MyOptions.SmoothingMode = Aspose.Imaging.SmoothingMode.AntiAlias Or Aspose.Imaging.SmoothingMode.HighQuality

ASPSaveSetPNG.VectorRasterizationOptions = MyOptions

Any idea? :slight_smile:

@australian.dev.nerds , Thank you for your request. VectorRasterizationOptions are only taken when converting a vector image to a raster image.
Gif is a raster image, unfortunately these options cannot be applied to it.

1 Like

Thanks, let me see, it is used in the load options? And not save options, like how it is used in Aspose Words?!

@australian.dev.nerds, These are rasterization options that are applied at rendering time. This happens at the time of saving. This way you can load an image once and save it multiple times with different rendering options.