1
/*********************************************************
2
* Copyright (C) 1998 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License as published
6
* by the Free Software Foundation version 2.1 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
11
* License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
*********************************************************/
22
* Image manipulation routines.
29
#include "imageUtilTypes.h"
31
#include "unicodeTypes.h"
34
#include "imageUtilWin32.h"
37
EXTERN Bool ImageUtil_ReadPNG(ImageInfo *image,
38
ConstUnicode pathName,
40
EXTERN Bool ImageUtil_WritePNG(const ImageInfo *image,
41
ConstUnicode pathName,
42
const ImagePngWriteOptions *options);
44
EXTERN Bool ImageUtil_WriteImage(const ImageInfo *image,
45
ConstUnicode pathName,
48
EXTERN Bool ImageUtil_ReadPNGBuffer(ImageInfo *image,
49
const unsigned char *imageData,
52
EXTERN Bool ImageUtil_ConstructPNGBuffer(const ImageInfo *image,
53
const ImagePngWriteOptions *options,
55
EXTERN Bool ImageUtil_ConstructBMPBuffer(const ImageInfo *image, DynBuf *imageData);
57
EXTERN void ImageUtil_FreeImageData(ImageInfo *image);
59
EXTERN Bool ImageUtil_Combine(const ImageInfo *images, const VMPoint *origins,
60
size_t n, ImageInfo *combined);
62
EXTERN Bool ImageUtil_CropAndScaleImage(ImageInfo *image,
67
#endif // _IMAGEUTIL_H_