-
Notifications
You must be signed in to change notification settings - Fork 92
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
Load and display bitmaps at runtime #82
Comments
Hello @uklatt,
Where is
In general, it isn't recommended to call That said, the above GdDrawImageFromFile could be being clipped to the output window, depending on the API being used. You might grep/look through the various demo programs in src/bin as well as demos/mwin and demos/nanox, there are a number which draw images. Thank you! |
Hi Greg, If I use the image_penguine:
the following code works.
But when I try to load the same bitmap it doesn't work:
gdb-output:
This looks like a 32Bit/64Bit pointer problem... ========================== I found the reason! I missed the declaration of |
One small thing: I use copy from memory device context to another memory device context.
|
In general, one can't call For WIN32 API, generally you'll have to convert the image to a .c file, which the demos/mwin/mwdemo.c program does, or, you can convert the image to BMP format, then store load it from a .res resource file using |
Hi Greg, |
Hello Greg,
what is the "best" solution to load and display a BMP bitmap file with actual 0.94 version?
The following code doesn't work.
I got the following error:
When I display the bitmap file (8 bit palette image) with
GdDrawImageFromFile(hdc->psd, x,y,dx,dy, filename,0);
only the top half of the bitmap is displayed.
The text was updated successfully, but these errors were encountered: