PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Blit to a bitmap over 240 x 320

Hi,

I would like to know if I can use PocketFrog to produce a bit map file larger than the screen size (240x320). Is it possible ?

Also is there functions in PocketFrog to output a picture to a printer.
You can certainly have surfaces larger than 240x320. Whether you use LoadImage() to load an image that's larger, or CreateSurface(), there's nothing stopping you except the amount of RAM on the device. Just SetRenderTarget(Your_big_surface) and Blit() all you want. (Just don't forget to SetRenderTarget(0) afterwards.)

I haven't done any printing to printers though.

-John
Hope this help:
Code:

Display * pDisplay;
pDisplay = GetDisplay();
Surface * S_biggerthanscreen = pDisplay->CreateSurface(DesiredWidth , DesiredHeight);
pDisplay->SetRenderTarget(S_biggerthanscreen);
//pDisplay->Draw_A_Lamb_In_A_Big_Box )
TCHAR pathname[MAX_PATH];
if (PocketPC::GetFullPathName(_T("PrintMe"),pathname)==0)return false;
SaveImage(S_biggerthanscreen , pathname);
pDisplay->SetRenderTarget(NULL);
delete S_biggerthanscreen;

After that you can print or beam your file with some other application.





[/code]