PocketMatrix forums

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

New member in gapidraw

I use gapidrawnet wrapper with vb.I display an image with AlphaBltFast function.Now i move the image to another location but i don not know how to delete the image in previous location.Thank's in advance
Hello Stratus,

What you need to do is to redraw the entire screen, including the background. Typically you do a loop as follows:

1. Draw everything on screen to a CGapiSurface that is the same size as the screen (this surface is typically called the "back buffer")
2. Copy the "back buffer" surface to the screen using CGapiSurface::BltFast
3. Wait a few milliseconds
4. Go to #1

This is how most interactive applications work.

Sincerely
Johan
[quote="Johan"]Hello Stratus,

Thank you for your answer.I have one more question.I want to draw text with greek letters.I thought to use the Drawtext api using GetDC function.Is it going to work this approach;
Hello again,

Yes, using GetDC to draw text would work great!

If you decide to buy GapiDraw we have a special licensed version of GapiDraw 4.2 that stores all surfaces as DIB surfaces, meaning that GetDC will take 0 milliseconds overhead to call. This is very useful if you use a lot of GetDC calls.

Send me a PM and I can describe it in more detail for you.

Sincerely
Johan