2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: Get an attribute from a bitmap.
8 #include "graphics_intern.h"
9 #include "gfxfuncsupport.h"
10 #include <graphics/rastport.h>
12 /*****************************************************************************
15 #include <exec/types.h>
16 #include <graphics/gfx.h>
17 #include <proto/graphics.h>
18 #include <proto/oop.h>
20 AROS_LH2(IPTR
, GetBitMapAttr
,
23 AROS_LHA(struct BitMap
*, bitmap
, A0
),
24 AROS_LHA(ULONG
, attribute
, D1
),
27 struct GfxBase
*, GfxBase
, 160, Graphics
)
30 Returns a specific information about a bitmap. Do not access the
34 bitmap - The BitMap structure to get information about.
35 attribute - Number of the attribute to get. See <graphics/gfx.h> for
39 The information you requested. If you asked for an unknown attribute,
40 0 or NULL is returned.
54 29-10-95 digulla automatically created from
55 graphics_lib.fd and clib/graphics_protos.h
57 *****************************************************************************/
66 retval
= (IPTR
)bitmap
->Rows
;
70 /* must return width in pixel! */
71 retval
= (IPTR
)(bitmap
->BytesPerRow
* 8);
75 if (IS_HIDD_BM(bitmap
))
77 retval
= (IPTR
)HIDD_BM_REALDEPTH(bitmap
);
81 retval
= (IPTR
)bitmap
->Depth
;
86 retval
= (IPTR
)(bitmap
->Flags
& (BMF_DISPLAYABLE
|
100 } /* GetBitMapAttr */