2014-10-21 09:21:31 +08:00
|
|
|
// Aseprite Document Library
|
2025-01-09 02:59:05 +08:00
|
|
|
// Copyright (c) 2019-2025 Igara Studio S.A.
|
2014-10-21 09:21:31 +08:00
|
|
|
// Copyright (c) 2001-2014 David Capello
|
|
|
|
|
//
|
|
|
|
|
// This file is released under the terms of the MIT license.
|
|
|
|
|
// Read LICENSE.txt for more information.
|
2024-12-17 01:52:19 +08:00
|
|
|
|
2014-10-21 09:21:31 +08:00
|
|
|
#ifndef DOC_PIXEL_FORMAT_H_INCLUDED
|
|
|
|
|
#define DOC_PIXEL_FORMAT_H_INCLUDED
|
|
|
|
|
#pragma once
|
2024-12-17 01:52:19 +08:00
|
|
|
|
2024-12-21 09:39:42 +08:00
|
|
|
// Use 1-bit per pixel in IMAGE_BITMAP
|
|
|
|
|
#define DOC_USE_BITMAP_AS_1BPP 1
|
|
|
|
|
|
|
|
|
|
// Use 8-bit per pixel in IMAGE_BITMAP
|
|
|
|
|
// #define DOC_USE_BITMAP_AS_1BPP 0
|
|
|
|
|
|
2014-10-21 09:21:31 +08:00
|
|
|
namespace doc {
|
2024-12-17 01:52:19 +08:00
|
|
|
|
2025-01-09 02:59:05 +08:00
|
|
|
// This enum might be replaced/deprecated/removed in the future, please use
|
|
|
|
|
// doc::ColorMode instead.
|
2014-10-21 09:21:31 +08:00
|
|
|
enum PixelFormat {
|
2019-03-30 02:57:10 +08:00
|
|
|
IMAGE_RGB, // 32bpp see doc::rgba()
|
|
|
|
|
IMAGE_GRAYSCALE, // 16bpp see doc::graya()
|
|
|
|
|
IMAGE_INDEXED, // 8bpp
|
|
|
|
|
IMAGE_BITMAP, // 1bpp
|
|
|
|
|
IMAGE_TILEMAP, // 32bpp see doc::tile()
|
2014-10-21 09:21:31 +08:00
|
|
|
};
|
2024-12-17 01:52:19 +08:00
|
|
|
|
2014-10-21 09:21:31 +08:00
|
|
|
} // namespace doc
|
2024-12-17 01:52:19 +08:00
|
|
|
|
2014-10-21 09:21:31 +08:00
|
|
|
#endif
|