LIBEUNOMIA
読み取り中…
検索中…
一致する文字列を見つけられません
dibio.h
[詳解]
1/*
2 * Copyright 2002-2021 oZ/acy (名賀月晃嗣)
3 * Redistribution and use in source and binary forms,
4 * with or without modification,
5 * are permitted provided that the following conditions are met:
6 *
7 * 1. Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.
9 *
10 * 2. Redistributions in binary form must reproduce the above copyright notice,
11 * this list of conditions and the following disclaimer in the documentation
12 * and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
16 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 */
35#ifndef INCLUDE_GUARD_EUNOMIA_DIB_INPUT_OUTPUT_H
36#define INCLUDE_GUARD_EUNOMIA_DIB_INPUT_OUTPUT_H
37
38#include <filesystem>
39#include "picture.h"
40#include "picture_indexed.h"
41
42namespace eunomia
43{
44
62bool
64 const std::filesystem::path& path,
65 std::unique_ptr<Picture>& uppict,
66 std::unique_ptr<PictureIndexed>& upindx);
67
68
77bool saveDib(const Picture& pict, const std::filesystem::path& path);
78
87bool saveDib(const PictureIndexed& pict, const std::filesystem::path& path);
88
89
90}// end of namespace eunomia
91
92
93
94
95#endif // INCLUDE_GUARD_EUNOMIA_DIB_INPUT_OUTPUT_H
RGB24bit256インデックスの畫像バッファ
Definition picture_indexed.h:58
RGB24bitの畫像バッファ
Definition picture.h:59
Definition colour.h:49
bool saveDib(const Picture &pict, const std::filesystem::path &path)
DIBファイルの保存
Definition dibout.cpp:189
bool loadDib(const std::filesystem::path &path, std::unique_ptr< Picture > &uppict, std::unique_ptr< PictureIndexed > &upindx)
DIBファイルの讀み込み
RGB24bitの畫像バッファクラス
RGB24bit256インデックスの畫像バッファクラス