ISDBImage::ConvertFormat
Jump to navigation
Jump to search
CoClass SDBImage, Interface ISDBImage
Function ConvertFormat(NewWidth As Long, NewHeight As Long, NewFormat As String, Compression As Long, BackgroundColor 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 | -1..Convert to given dimensions, 0...Keep aspect ratio and fill by black color pixels to get requested dimensions |
Method description
Converts this image to another format and/or dimensions and returns converted SDBImage object.