You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Saving GdPicture Image > SaveAsICO > SaveAsICO Method (Integer, String, IconSize)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.SaveAsICO Method (Integer, String, IconSize)

Saves a GdPicture image as Window icon image format.

C#
public GdPictureStatus SaveAsICO(
    int ImageID, 
    String FilePath, 
    IconSize IconSize
);
Visual Basic
Public Function SaveAsICO(
    ByVal ImageID As Integer, 
    ByVal FilePath As String, 
    ByVal IconSize As IconSize
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
FilePath 
The complete file path to save a GdPicture image.  
IconSize 
A member of the IconSize enumeration. The icons size.  
Returns

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")
   oGdPictureImaging.ReleaseGdPictureImage (ImageID)
End If
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.