New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / cgfx / readpixelarray.c
blobe82e87bec29a17135c80c52cc1c2a2d7c6f1ceb9
1 /*
2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include "cybergraphics_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <clib/cybergraphics_protos.h>
15 AROS_LH10(ULONG, ReadPixelArray,
17 /* SYNOPSIS */
18 AROS_LHA(APTR , dst , A0),
19 AROS_LHA(UWORD , destx , D0),
20 AROS_LHA(UWORD , desty , D1),
21 AROS_LHA(UWORD , dstmod , D2),
22 AROS_LHA(struct RastPort *, rp , A1),
23 AROS_LHA(UWORD , srcx , D3),
24 AROS_LHA(UWORD , srcy , D4),
25 AROS_LHA(UWORD , width , D5),
26 AROS_LHA(UWORD , height , D6),
27 AROS_LHA(UBYTE , dstformat , D7),
29 /* LOCATION */
30 struct Library *, CyberGfxBase, 20, Cybergraphics)
32 /* FUNCTION
34 INPUTS
36 RESULT
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 HISTORY
49 27-11-96 digulla automatically created from
50 cybergraphics_lib.fd and clib/cybergraphics_protos.h
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
55 AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
57 if (width && height)
59 return driver_ReadPixelArray(dst
60 , destx, desty
61 , dstmod
62 , rp
63 , srcx, srcy
64 , width, height
65 , dstformat
66 , GfxBase
69 else return 0;
71 AROS_LIBFUNC_EXIT
72 } /* ReadPixelArray */