Previous Document Next Document

Object Model Reference : Classes : S : StructPaletteOptions : Properties : StructPaletteOptions.Smoothing


StructPaletteOptions.Smoothing

Property Smoothing As Long

Description

Member of StructPaletteOptions

The Smoothing property specifies the amount of smoothing of color transitions to minimize abrupt color changes.

VBA example

The following VBA example exports the drawing to a GIF file using a 32-color optimized palette, and it applies a smoothing of 50% to the image:

Sub Test()
 Dim pal As New StructPaletteOptions
 Dim flt As ExportFilter
 pal.NumColors = 32
 pal.PaletteType = cdrPaletteOptimized
 pal.Smoothing = 50
 Set flt = ActiveDocument.ExportBitmap("C:\Temp\img.gif", cdrGIF, , cdrPalettedImage, PaletteOptions:=pal)
 flt.Finish
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.