Jump to content
Tuts 4 You

GdipDrawImage returns 0 ,but the picture doesn't show on my pictur


pbsoft

Recommended Posts

33280g7.jpg


I'm using plain C to call these functions of GDI+ ,and response WM_PAINT with this function ,the last call of GdipDrawImage returns 0, it means success ,but on my picture control I can not find my picture on it.source.txt


Link to comment

i see u posted this everywhere & like everyone tells u, you're trying to use c++ features in c. u arent even using proper gdi+ objects in that code amungst other errors.


 


if all u want to do is load a bitmap to a hwnd in raw C, id use gdi, u can use BitBlt to cache a bitmap, load your image via fopen(), cut off the header, and memcpy the pixels in. there are C sources here that will get u started.

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...