images.gdiplus: GDI+ "ARGB" is little-endian, so really maps to opengl BGRA

db4
Joe Groff 2010-07-07 14:51:16 -07:00
parent 785907543f
commit e228d8478f
1 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
USING: accessors alien.c-types alien.data alien.enums
classes.struct destructors images images.loader
io.streams.limited kernel locals math windows.com
windows.gdiplus windows.streams windows.types ;
FROM: images => ARGB ;
windows.gdiplus windows.streams windows.types typed
byte-arrays grouping sequences ;
IN: images.gdiplus
SINGLETON: gdi+-image
@ -48,7 +48,7 @@ SINGLETON: gdi+-image
image new
{ w h } >>dim
pixels >>bitmap
ARGB >>component-order
BGRA >>component-order
ubyte-components >>component-type
f >>upside-down? ;