/* Bitmap contexts. Copyright (C) 2001 Johan Rydberg. All Rights Reserved. This file is part of Crust. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __GraphicsFoundation_GFBitmapContext_h #define __GraphicsFoundation_GFBitmapContext_h 1 #include #include #include #include #include /* Create a bitmap context that is WIDTH wide and HEIGHT high. BITS_PER_COMPONENT must be 8. COLORSPACE is just used to get the number of components for the bitmap. Returns a reference to the bitmap context. */ GF_EXTERN GFContextRef GFBitmapContextCreate (void *raster_buffer, size_t width, size_t height, size_t bits_per_component, size_t rowstride, GFColorSpaceRef colorspace, GFImageAlphaInfo alpha_info); #endif /* GFBitmapContext.h */