OpenRCT2/src/openrct2/Imaging.h

38 lines
1.5 KiB
C
Raw Normal View History

#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers
/*****************************************************************************
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
*
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
* For more information, visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 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 3 of the License, or
* (at your option) any later version.
*
* A full copy of the GNU General Public License can be found in licence.txt
*****************************************************************************/
#pragma endregion
2017-01-07 13:10:42 +01:00
#pragma once
2015-12-29 15:32:51 +01:00
#include "common.h"
2017-06-09 00:02:39 +02:00
2018-01-05 22:17:33 +01:00
#include "drawing/Drawing.h"
2015-12-29 15:32:51 +01:00
2017-01-07 13:10:42 +01:00
#ifdef __cplusplus
2017-01-07 13:10:42 +01:00
namespace Imaging
{
bool PngRead(uint8 * * pixels, uint32 * width, uint32 * height, bool expand, const utf8 * path, sint32 * bitDepth);
2017-01-07 13:10:42 +01:00
bool PngWrite(const rct_drawpixelinfo * dpi, const rct_palette * palette, const utf8 * path);
bool PngWrite32bpp(sint32 width, sint32 height, const void * pixels, const utf8 * path);
}
2015-12-29 15:32:51 +01:00
2017-01-07 13:10:42 +01:00
#endif // __cplusplus
2018-02-01 18:49:14 +01:00
bool image_io_png_read(uint8 * * pixels, uint32 * width, uint32 * height, bool expand, const utf8 * path, sint32 * bitDepth);
bool image_io_png_write(const rct_drawpixelinfo * dpi, const rct_palette * palette, const utf8 * path);
bool image_io_png_write_32bpp(sint32 width, sint32 height, const void * pixels, const utf8 * path);