Saves a GdPicture image as Window icon image format specifying a color to set as transparent.
public GdPictureStatus SaveAsICO( int ImageID, String FilePath, Color TransparentColor, IconSize IconSize );
Public Function SaveAsICO( ByVal ImageID As Integer, ByVal FilePath As String, ByVal TransparentColor As Color, ByVal IconSize As IconSize ) As GdPictureStatus
|
Parameters |
Description |
|
ImageID |
GdPicture Image Identifier. |
|
FilePath |
The complete file path to save a GdPicture image. |
|
TransparentColor |
Color Object. You can build a Color Object using the ARGB() function. If bTransparentColor parameter is True, this parameter defines the transparent color of the ICON. |
|
IconSize |
A member of the IconSize enumeration. The icons size. |
A member of the GdPictureStatus enumeration.
How to convert BMP file to Window icon file
Dim ImageID As Integer ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("image.bmp") If ImageID <> 0 Then oGdPictureImaging.SaveAsICO (ImageID, "icon.ico", Color.White) oGdPictureImaging.ReleaseGdPictureImage (ImageID) End If
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.
|