PocketMatrix forums

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

newbie exemple request :)

hi all ,
can somewone please post a littel example code how to use CGapiRGBASurface.

i ave tried whit the doc but its hard for a newbie++ programer whit a poor english :)

thanks.
no one ,its a so ridiculus question ? :oops:
Hi,

Um..

1. You create a PNG-file with or without transparency. Use an application like Photoshop for this.
2. Create a CGapiRGBASurface object. Call CreateSurface() on the object and pass your PNG-image as a parameter.
3. Draw the bitmap to another surface or the display using AlphaBlt or AlphaBltFast.

//Johan
ok :)
many thanks and sorry for the inconveniance whit my question.... :oops: :oops:

i ave just make a littel confusion whit source and dest rect .