ISDBImage::ConvertFormatEx

From MediaMonkey Wiki
Jump to navigation Jump to search

CoClass SDBImage, Interface ISDBImage

Function ConvertFormatEx(NewWidth As Long, NewHeight As Long, NewFormat As String, Compression As Long, BackgroundColor As Long, Flags As Long) As SDBImage


Parameters

Name Type Description
NewWidth Long Width of the new image (in pixels).
NewHeight Long Height of the new image (in pixels).
NewFormat String Specification of the target format, can be: 'image/jpeg', 'image/png' or 'RGB565'.
Compression Long JPEG compression value (0-100), higher value means better image/less compression.
BackgroundColor Long Value specifying RGB color to be used for empty pixels.
Flags Long 1..Center the image in case it's larger than specified dimensions, 2..Use entered dimensions exactly, don't recalculate them based on aspect ration of the source image.


Method description

Converts this image to another format and/or dimensions and returns converted SDBImage object.