It is currently Wed Sep 08, 2010 6:15 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: SDL_Overlay to SDL RGB Surface conversion?
PostPosted: Fri Jul 16, 2010 5:32 pm 
Joined: Fri Jul 16, 2010 5:28 pm
Posts: 2

Hi everyone :D
I've been looking for an SDL related board and im really happy that i found this superb site :)

As title suggests , i would like to convert an SDL_Overlay surface to an SDL_Surface(rgb).

Do you guys know how i should go through this?

Thanks for any help!

:)


Offline
 Profile  
 Post subject: Re: SDL_Overlay to SDL RGB Surface conversion?
PostPosted: Sat Jul 17, 2010 9:48 am 
Joined: Thu Jun 18, 2009 11:47 pm
Posts: 33

Hello VNeki. Welcome.

Well, I never worked with sdl overlays before so i might be terribily wrong, but I guess that if you can lock the overlay and access its pixels data, try using SDL_CreateRGBSurfaceFrom: http://www.libsdl.org/cgi/docwiki.cgi/S ... urfaceFrom

Good luck!


Offline
 Profile  
 Post subject: Re: SDL_Overlay to SDL RGB Surface conversion?
PostPosted: Sun Jul 18, 2010 4:53 am 
Joined: Fri Jul 16, 2010 5:28 pm
Posts: 2

Leonardo wrote:
Hello VNeki. Welcome.

Well, I never worked with sdl overlays before so i might be terribily wrong, but I guess that if you can lock the overlay and access its pixels data, try using SDL_CreateRGBSurfaceFrom: http://www.libsdl.org/cgi/docwiki.cgi/S ... urfaceFrom

Good luck!


Thank you! I'll try it! :D


Offline
 Profile  
 Post subject: Re: SDL_Overlay to SDL RGB Surface conversion?
PostPosted: Sun Jul 18, 2010 11:58 am 
Joined: Thu Jun 18, 2009 11:47 pm
Posts: 33

Tell us if it works, will you?


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


 Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:
Jump to:  
 
cron