| 1 | /*************************************************************************** |
|---|
| 2 | * graphicsImage.inline |
|---|
| 3 | * |
|---|
| 4 | * Sun Mar 15 2009 |
|---|
| 5 | * Copyright 2009 Dmytro Milinevskyy |
|---|
| 6 | * milinevskyy@gmail.com |
|---|
| 7 | ****************************************************************************/ |
|---|
| 8 | |
|---|
| 9 | /* |
|---|
| 10 | * This program is free software; you can redistribute it and/or modify |
|---|
| 11 | * it under the terms of the GNU Lesser General Public License version 2.1 as published by |
|---|
| 12 | * the Free Software Foundation; |
|---|
| 13 | * |
|---|
| 14 | * This program is distributed in the hope that it will be useful, |
|---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | * GNU Library General Public License for more details. |
|---|
| 18 | * |
|---|
| 19 | * You should have received a copy of the GNU Lesser General Public License |
|---|
| 20 | * along with this program; if not, write to the Free Software |
|---|
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 22 | */ |
|---|
| 23 | |
|---|
| 24 | /** |
|---|
| 25 | * vim indentation settings |
|---|
| 26 | * set tabstop=4 |
|---|
| 27 | * set shiftwidth=4 |
|---|
| 28 | */ |
|---|
| 29 | |
|---|
| 30 | #include <libdodo/directives.h> |
|---|
| 31 | |
|---|
| 32 | #ifdef IMAGEMAGICK_EXT |
|---|
| 33 | #ifndef IMAGEMAGICK_PRE_63 |
|---|
| 34 | #include <magick/MagickCore.h> |
|---|
| 35 | #else |
|---|
| 36 | #include <magick/ImageMagick.h> |
|---|
| 37 | #endif |
|---|
| 38 | |
|---|
| 39 | namespace dodo { |
|---|
| 40 | namespace graphics { |
|---|
| 41 | /** |
|---|
| 42 | * @struct __image__ |
|---|
| 43 | * @brief defines internal handlers for image processing library |
|---|
| 44 | */ |
|---|
| 45 | struct __image__ { |
|---|
| 46 | /** |
|---|
| 47 | * contructor |
|---|
| 48 | */ |
|---|
| 49 | __image__() : im(NULL), |
|---|
| 50 | imInfo(NULL) |
|---|
| 51 | { |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | Image *im; ///< image handler |
|---|
| 55 | ImageInfo *imInfo; ///< image info handler |
|---|
| 56 | }; |
|---|
| 57 | }; |
|---|
| 58 | }; |
|---|
| 59 | #endif |
|---|
| 60 | |
|---|
| 61 | //------------------------------------------------------------------- |
|---|
| 62 | |
|---|