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

blitting a surface... help!


blitting a surface... help!

Postby blitter » May 22, 2002 @ 3:40pm

Imagine: I have a surface and I want to blit it to screen using coordinates -x= - 50, y = 0 (I want to move it then into screen). The surface is not blitted until it is entirely in the screen. Any solutions?
blitter
 


Postby jul' » May 22, 2002 @ 5:03pm

Imagine: I have a surface and I want to blit it to screen using coordinates -x= - 50, y = 0 (I want to move it then into screen). The surface is not blitted until it is entirely in the screen. Any solutions?

Imagine the size of your surface is WIDTH x HEIGHT

Create a rectangle of size (w,HEIGHT)
then blit your surface from coordinate (WIDTH-w,0) and the size of the rectangle to the screen.

grew w from 0 to WIDTH, one by one, and that will be ok...

jul'
jul'
pm Member
 
Posts: 15
Joined: May 22, 2002 @ 10:55am
Location: Grenoble


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