PocketMatrix forums

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

Is it possible to customize GAPIDraw?

Please, is it possible to customize GAPIDraw to suit specific needs? Say, you have a function that generates a line, but say I wish the line to be a 50% transparent antialiased of varying width..

Shoudl I simply develop my own function from scratch, that would not be difficult at all, but there might be a performance loss, or does GAPIDraw offer a way of customizing and adding functionality it to suit specific needs?

Thank you and with regards,
Rene.
Hi Rene,

GapiDraw already supports transparent antialiased lines. However if you need variable width also the easiest is to implement it yourself. You can easily do this using the GetBuffer function to get access to the surface memory buffer.

Many developers use this access to the raw memory surface today to customize GapiDraw and add functionality to suit their needs.

Cheers
Johan