Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / Unable to use SetCurrent()

Author
Message
slewrate
12
Years of Service
User Offline
Joined: 13th Oct 2011
Location: Austin, Texas
Posted: 13th Oct 2011 20:49
Hello, I am trying to load a bitmap, set it as current and copy parts of it into images, but for some reason I don't get anything on the screen. I am able to load images directly and draw them though.

This is what I am trying to do:


Does anybody have an idea what I am doing wrong ?
Thanks in advance
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 16th Oct 2011 18:49
I'm not entirely sure, as I don't know GDK.Net very well; but from a DBP point of view it doesn't look like you are switching the current bitmap back to Bitmap 0 (The one displayed on screen) before you start pasting the images.

slewrate
12
Years of Service
User Offline
Joined: 13th Oct 2011
Location: Austin, Texas
Posted: 16th Oct 2011 21:22
=PRoF=, Thank you so much for your post. You were right with your assumption. I must have misunderstood something conceptually here.

Thanks again.

Login to post a reply

Server time is: 2024-04-23 11:47:51
Your offset time is: 2024-04-23 11:47:51