Description
This property defines the quality of raster images. Possbile values of this
property are integer numbers from 0 to 100.
Type
long (read/write)
Remarks
Value of 0 defines the lossless image quality (PNG-like compression).
Values from 1 to 100 define the lossy image quality (JPEG-like compression).
Higher values provide higher image quality, the lower values provide lower
size.
The default value for this property is 0 which means lossless compression.
Images can be represented in Flash format using Lossless (PNG-like)
or Lossy (JPEG-like) image compression. Lossless image compression
preserves the original quality of images but usually increases Flash file
size. Lossy image compression usually provides higher compression rates especially
for photorealistic images but decreases their quality. Non-photorealistic
images such as graphs, charts, or sketches being compressed with the lossy
algorithm lose their quality noteceably. That's why lossless algorithms are
the most suitable for them. That's why we provide 2 options for image
quality controlling.
There is so-called smart image compression technique available
since FlashSpring Server 2.4 and FlashSpring Pro 3.0. FlashSpring analyses
the content of raster images to determine whether they are photo-realistic
or non-photo realistic and applies lossy or lossless image compression. This
technique provides the best image quality as well as the reasonable file
size.
Note: The smar image compression is automatically used
when the ImageQuality property
is set to 0 and the JpegImageQuality property
is set to non-zero.
Example
The following example converts the presentation to solid Flash file using smart
image compression..
Sub Sample()
Dim fs As New FlashSpringAPI.FlashSpring
fs.OpenPresentation "d:\temp\test.ppt"
fs.Settings.Media.JpegImageQuality = 85
fs.Settings.Media.ImageQuality = 0
fs.GenerateFlash "c:\presentations", "myMovie.swf", OM_SOLID, "Standard"
fs.ClosePresentation
fs.ClosePowerPoint
End Sub
See Also
JpegImageQuality Property
GifImageQuality Property
MediaSettings Object