Back to index

scribus-ng  1.3.4.dfsg+svn20071115
art_rgb_svp.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /* Libart_LGPL - library of basic graphic primitives
00008  * Copyright (C) 1998 Raph Levien
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Library General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Library General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Library General Public
00021  * License along with this library; if not, write to the
00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00023  * Boston, MA 02111-1307, USA.
00024  */
00025 
00026 #ifndef __ART_RGB_SVP_H__
00027 #define __ART_RGB_SVP_H__
00028 
00029 /* Render a sorted vector path into an RGB buffer. */
00030 
00031 #ifdef LIBART_COMPILATION
00032 #include "art_alphagamma.h"
00033 #include "art_svp.h"
00034 #else
00035 #include <libart_lgpl/art_alphagamma.h>
00036 #include <libart_lgpl/art_svp.h>
00037 #endif
00038 
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif /* __cplusplus */
00042 
00043 void
00044 art_rgb_svp_aa_ (const ArtSVP *svp,
00045               int x0, int y0, int x1, int y1,
00046               art_u32 fg_color, art_u32 bg_color,
00047               art_u8 *buf, int rowstride,
00048               ArtAlphaGamma *alphagamma);
00049 
00050 void
00051 art_rgb_svp_alpha_ (const ArtSVP *svp,
00052                  int x0, int y0, int x1, int y1,
00053                  art_u32 rgb, int alpha,
00054                  art_u8 *buf, int rowstride,
00055                  ArtAlphaGamma *alphagamma);
00056 
00057 #ifdef __cplusplus
00058 }
00059 #endif /* __cplusplus */
00060 
00061 #endif /* __ART_RGB_SVP_H__ */