1 /* LIBGIMP - The GIMP Library 2 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball 3 * 4 * gimppixelfetcher.h 5 * Contains all kinds of miscellaneous routines factored out from different 6 * plug-ins. They stay here until their API has crystalized a bit and we can 7 * put them into the file where they belong (Maurits Rijk 8 * <lpeek.mrijk@consunet.nl> if you want to blame someone for this mess) 9 * 10 * This library is free software: you can redistribute it and/or 11 * modify it under the terms of the GNU Lesser General Public 12 * License as published by the Free Software Foundation; either 13 * version 3 of the License, or (at your option) any later version. 14 * 15 * This library is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * Lesser General Public License for more details. 19 * 20 * You should have received a copy of the GNU Lesser General Public 21 * License along with this library. If not, see 22 * <https://www.gnu.org/licenses/>. 23 */ 24 25 #if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION) 26 #error "Only <libgimp/gimp.h> can be included directly." 27 #endif 28 29 #ifndef __GIMP_PIXEL_FETCHER_H__ 30 #define __GIMP_PIXEL_FETCHER_H__ 31 32 G_BEGIN_DECLS 33 34 /* For information look into the C source or the html documentation */ 35 36 37 typedef enum 38 { 39 GIMP_PIXEL_FETCHER_EDGE_NONE, 40 GIMP_PIXEL_FETCHER_EDGE_WRAP, 41 GIMP_PIXEL_FETCHER_EDGE_SMEAR, 42 GIMP_PIXEL_FETCHER_EDGE_BLACK, 43 GIMP_PIXEL_FETCHER_EDGE_BACKGROUND 44 } GimpPixelFetcherEdgeMode; 45 46 47 typedef struct _GimpPixelFetcher GimpPixelFetcher; 48 49 50 GIMP_DEPRECATED 51 GimpPixelFetcher * gimp_pixel_fetcher_new (GimpDrawable *drawable, 52 gboolean shadow); 53 GIMP_DEPRECATED 54 void gimp_pixel_fetcher_destroy (GimpPixelFetcher *pf); 55 56 GIMP_DEPRECATED 57 void gimp_pixel_fetcher_set_edge_mode (GimpPixelFetcher *pf, 58 GimpPixelFetcherEdgeMode mode); 59 GIMP_DEPRECATED 60 void gimp_pixel_fetcher_set_bg_color (GimpPixelFetcher *pf, 61 const GimpRGB *color); 62 63 GIMP_DEPRECATED 64 void gimp_pixel_fetcher_get_pixel (GimpPixelFetcher *pf, 65 gint x, 66 gint y, 67 guchar *pixel); 68 GIMP_DEPRECATED 69 void gimp_pixel_fetcher_put_pixel (GimpPixelFetcher *pf, 70 gint x, 71 gint y, 72 const guchar *pixel); 73 74 G_END_DECLS 75 76 #endif /* __GIMP_PIXEL_FETCHER_H__ */ 77