-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can gdip save as ".ico"? #21
Comments
Can you provide some working GDI+ code? I will investigate.
…On Sat, Nov 5, 2022 at 11:30 hyaray ***@***.***> wrote:
GdipSaveImageToFile seems to support the filetype...
is there any other method to do this?
thanks very much!!!
—
Reply to this email directly, view it on GitHub
<#21>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACKTTVBSRQ3OEM4RLHGZZBLWGZ4SNANCNFSM6AAAAAARX7FGAA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
sorry, I think
|
Depending on your use case, you can actually change the *.png extension to *.ico, and it should work. |
Just a little update: This needs some more investigation. In general, an *.ico file contains about 9 resolutions. These are mostly encoded as a bitmap and stored sequentially. So something like generating:
Here's the interesting part: An ICO file can host embedded PNGs. Since the IconDirEntry header uses a |
GdipSaveImageToFile seems not support the filetype...
is there any other method to do this?
thanks very much!!!
The text was updated successfully, but these errors were encountered: