New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / cgfx / writepixelarray.c
blob7088b670506afd377488db99415228044d8af704
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, WritePixelArray,
17 /* SYNOPSIS */
18 AROS_LHA(APTR , src , A0),
19 AROS_LHA(UWORD , srcx , D0),
20 AROS_LHA(UWORD , srcy , D1),
21 AROS_LHA(UWORD , srcmod , D2),
22 AROS_LHA(struct RastPort *, rp , A1),
23 AROS_LHA(UWORD , destx , D3),
24 AROS_LHA(UWORD , desty , D4),
25 AROS_LHA(UWORD , width , D5),
26 AROS_LHA(UWORD , height , D6),
27 AROS_LHA(UBYTE , srcformat , D7),
29 /* LOCATION */
30 struct Library *, CyberGfxBase, 21, 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_WritePixelArray(src
60 , srcx, srcy
61 , srcmod
62 , rp
63 , destx, desty
64 , width, height
65 , srcformat
66 , GfxBase
69 else return 0;
71 AROS_LIBFUNC_EXIT
72 } /* WritePixelArray */