help
Displaying 1-2 of 2 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Brann

Is there a way to paste pieces of a PCX on the screen rather than having to paste the whole PCX image? I'm pretty sure there is, but I haven't figured it out yet.



Posted on 2001-04-05 05:00:37

grenideer

First you need to grab some memory:
clip=malloc(width*height);
Then you need to set the clip size:
SetClipRect(0,0,width-1,height-1);

Now, you need to set the render destination to your clip above, load an image to a separate buffer, and copysprite and draw the image. This will draw it to your clip. The trick is if your clip starts at 0,0 (as above) and you want to see the 10,10 as the beginning of the image, you need to copysprite to 0-10,0-10. Get it?





Posted on 2001-04-05 19:05:36


Displaying 1-2 of 2 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.