This site is no longer active and is available for archival purposes only. Registration and login is disabled.

How do I clip a bitmap to only display the part on-screen?


How do I clip a bitmap to only display the part on-screen?

Postby Boo » Aug 3, 2002 @ 1:51am

Boo
 


Postby Johan » Aug 3, 2002 @ 4:40am

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby DillRye » Aug 4, 2002 @ 9:38am

User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Postby Johan » Aug 5, 2002 @ 5:32pm

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby DillRye » Aug 5, 2002 @ 6:39pm

User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Postby BooRad » Aug 6, 2002 @ 5:40am

Thanks for the advise and code DillRye and sbl. I'm making an asteroids-type scrolling game and just kind of hit a mental block. 8O
Make it idiot proof and someone will make a better idiot.
User avatar
BooRad
pm Member
 
Posts: 7
Joined: Aug 6, 2002 @ 5:26am


Postby BooRad » Aug 11, 2002 @ 2:44am

Make it idiot proof and someone will make a better idiot.
User avatar
BooRad
pm Member
 
Posts: 7
Joined: Aug 6, 2002 @ 5:26am


What about rotation

Postby tedson » Aug 21, 2002 @ 11:09pm

I was using almost the exact code above to clip my sprites but the problem I am running in to now is I am rotating the sprites by setting a rotation angle and passing GDBLT_ROTATIONANGLE to Blt. The problem is the width and height of the sprite are now different. Anyone know a good way around this one?
tedson
pm Member
 
Posts: 85
Joined: May 29, 2002 @ 8:22pm


this looks like a time for a FEATURE REQUEST

Postby thevicar » Aug 29, 2002 @ 12:54am

thevicar
pm Member
 
Posts: 5
Joined: Aug 19, 2002 @ 9:26pm


Postby DillRye » Aug 29, 2002 @ 8:42pm

I believe just the normal Blt function has what your lookin for.......
User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Postby Johan » Aug 29, 2002 @ 8:49pm

Yep...


And the next version of GapiDraw will also support a variable pivot point on the target surface with automatic clipping (so if you want to rotate a sprite and place it in the corner you no longer need to Blt with rotate to a temp surface and then copy/clip the result to the correct location).

I will announce a betaprogram of 1.1 next month...

/Johan
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron