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

Copying surface using CreateSurface?


Copying surface using CreateSurface?

Postby FlatscreenFX » Apr 7, 2004 @ 10:59am

FlatscreenFX
 


Postby vince_mad » Apr 7, 2004 @ 1:45pm

Hi, I'm new to GapiDraw.
If you just want to draw a part of your first surface on the second one I think you can do it by using a Blt function:

mySurf2.Blt(pRect2, &mySurf1, pRect1,dwFlags,pGDBltFx)

where mySurf1 is your "source" surface, mySurf2 is your target.
pRect1 is the part of the mySurf1 surface you want to draw,
pRect2 is the part of the mySurf2 surface where you want to draw.
(It would probably be better for the Rect1 and Rect2 rects to have the same dimensions).
Could some GapiDraw "guru" confirm? I don't want to say something wrong, I'm just a beginner...
I hope this is usefull.
Vincent.
User avatar
vince_mad
pm Member
 
Posts: 136
Joined: Mar 30, 2004 @ 7:40pm
Location: Paris, France


Postby Johan » Apr 7, 2004 @ 1:59pm

It's correct, but you should use BltFast instead if you don't need to scale the blit. BltFast is also significantly faster...
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


hm ... u need this as well ..

Postby GDuser » Apr 8, 2004 @ 2:06am

GDuser
 


Postby vince_mad » Apr 14, 2004 @ 10:19am

User avatar
vince_mad
pm Member
 
Posts: 136
Joined: Mar 30, 2004 @ 7:40pm
Location: Paris, France


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