Re: [CsMain] registration and help

"Christian Van Brussel" <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.general
Message-ID <[email protected]>
>> csRef<iImage> img (csPtr<iImage> (G2D->ScreenShot ()));
>>
>> This means the current frame! right?

It depends when you call it as it will return the current content of the
buffer. You may call it for example after the call to view->Draw () at the
end of csApplicationFramework::Frame().


>> if this gets me the current screen shot then how can i convert this
>> iImage
>> into a usable image for example an 8bit 3 channel image.
>> Help PLS!!!!!!!!!!!!!!!!!!!

iImage::GetImageData() should do the trick. Something like:

unsigned char *buffer = (unsigned char *) img->GetImageData();




------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[email protected]?subject=unsubscribe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.