Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-08

Raster Ops in Carbon missing. Alternatives?

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bruce Tulloch

We're porting code that uses the SRCPAINT raster op extensively (to merge multiple dynamically generated bitmaps efficiently at about 100 frames per second) and it works exceptionally well in Gtk2 and Win32.

Now we're porting to OS X (Carbon) and we've discovered raster ops are not implemented. I see this has been raised and acknowledged as a feature request half a year ago (lazarus bug 18430).

Are there plans to implement it?

If not, what other graphics programming options are available which might be viable for this purpose.

Any and all advice gratefully received,

Cheers, Bruce.

Reply by email

Felipe Monteiro de Carvalho
to Bruce Tulloch
Bruce Tulloch wrote
Are there plans to implement it?

Not that I know of.

If not, what other graphics programming options are available which might be viable for this purpose.

I can imagine a couple of options:

1> Implement SRCPAINT in Carbon, it doesn't look hard

2> To mix two bitmaps you can convert each to a TLazIntfImage, use the Pixels property to operate on them, in this case using the OR operator, and convert back to a TBitmap the result. The wiki has instructions about how to use TLazIntfImage

3> Use the Qt widgetset.

Felipe Monteiro de Carvalho

Reply by email

zeljko
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 11 lines
On Sat, Aug 6, 2011 at 2:41 PM, Bruce Tulloch wrote: > Are there plans to implement it? Not that I know of. > If not, what other graphics programming options are available which > might be viable for this purpose. I can imagine a couple of options: 3> Use the Qt widgetset.

Qt MacOSX doesn't support raster ops over widgets, you can use raster ops only over QImage (TBitmap).

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110807/ffc47b41/attachment.html>

Reply by email