ungerik / go-cairo

Go binding for the cairo graphics library
Other
142 stars 32 forks source link

[surface.go] fix GetImage() for FORMAT_ARGB32 and FORMAT_RGB24 #4

Closed pebbe closed 11 years ago

pebbe commented 11 years ago

In function: GetImage()

The colors and alpha mask were reversed in FORMAT_ARGB32

FORMAT_RGB24 is actually 32 bit with 8 bits unused (and also in reverse order, just like FORMAT_ARGB32)

ungerik commented 11 years ago

Thanks for that. Merged.

-Erik

On Sun, Aug 11, 2013 at 1:19 PM, Peter Kleiweg notifications@github.comwrote:

I have done some work after making this pull request, and I noticed this is now also included in the pull request.

The thing I did was to implement the TextExtents() method. Because I had a need for it.

— Reply to this email directly or view it on GitHubhttps://github.com/ungerik/go-cairo/pull/4#issuecomment-22456183 .

+43 650 58 33055 erik@erikunger.com Skype: ungerik http://erikunger.com http://twitter.com/ungerik http://facebook.com/ungerik http://www.linkedin.com/in/ungerik http://www.xing.com/profile/Erik_Unger2