Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Edited Issue: MagickFormat.Bgra fails to read alpha [1344]

$
0
0
Test case:

```
var bytes = new byte[] { 1, 2, 3, 4 };

var imgRgba = new MagickImage(bytes,
new MagickReadSettings { Width = 1, Height = 1, Format = MagickFormat.Rgba });
var pixelRgba = imgRgba.GetReadOnlyPixels().GetPixel(0, 0);
// is 1,2,3,4 as expected

var imgBgra = new MagickImage(bytes,
new MagickReadSettings { Width = 1, Height = 1, Format = MagickFormat.Bgra });
var pixelBgra = imgBgra.GetReadOnlyPixels().GetPixel(0, 0);
// is 3, 2, 1, 255 - expected 3, 2, 1, 4

```
Comments: ** Comment from web user: dlemstra **

I can confirm this is a bug in ImageMagick 7. We are working on a fix.


Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>