1 #include <cybergraphx/cybergraphics.h>
3 #include <proto/intuition.h>
4 #include <proto/cybergraphics.h>
11 static char *pixfmt_str
[14]=
31 struct Screen
*scr
= IntuitionBase
->ActiveScreen
;
35 struct BitMap
*bm
= scr
->RastPort
.BitMap
;
38 pixfmt
= GetCyberMapAttr(bm
, CYBRMATTR_PIXFMT
);
40 printf("Pixel Format: #%ld (%s)\n",
42 ((pixfmt
>= 0) && (pixfmt
< NUM_PIXFMT
)) ? pixfmt_str
[pixfmt
] : "<unknown>");