karbon

art_rgb_svp.h

00001 /* Libart_LGPL - library of basic graphic primitives
00002  * Copyright (C) 1998 Raph Levien
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018  */
00019 
00020 #ifndef __ART_RGB_SVP_H__
00021 #define __ART_RGB_SVP_H__
00022 
00023 /* Render a sorted vector path into an RGB buffer. */
00024 
00025 #ifdef LIBART_COMPILATION
00026 #include "art_alphagamma.h"
00027 #include "art_svp.h"
00028 #else
00029 #include <libart_lgpl/art_alphagamma.h>
00030 #include <libart_lgpl/art_svp.h>
00031 #endif
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif /* __cplusplus */
00036 
00037 void
00038 art_rgb_svp_aa_ (const ArtSVP *svp,
00039         int x0, int y0, int x1, int y1,
00040         art_u32 fg_color, art_u32 bg_color,
00041         art_u8 *buf, int rowstride,
00042         ArtAlphaGamma *alphagamma);
00043 
00044 void
00045 art_rgb_svp_alpha_ (const ArtSVP *svp,
00046            int x0, int y0, int x1, int y1,
00047            art_u32 rgb, int alpha,
00048            art_u8 *buf, int rowstride,
00049            ArtAlphaGamma *alphagamma);
00050 
00051 #ifdef __cplusplus
00052 }
00053 #endif /* __cplusplus */
00054 
00055 #endif /* __ART_RGB_SVP_H__ */
KDE Home | KDE Accessibility Home | Description of Access Keys