1// Aseprite Document Library
2// Copyright (c) 2001-2016 David Capello
3//
4// This file is released under the terms of the MIT license.
5// Read LICENSE.txt for more information.
6
7#ifndef DOC_IMAGE_IO_H_INCLUDED
8#define DOC_IMAGE_IO_H_INCLUDED
9#pragma once
10
11#include <iosfwd>
12
13namespace doc {
14
15 class CancelIO;
16 class Image;
17
18 bool write_image(std::ostream& os, const Image* image, CancelIO* cancel = nullptr);
19 Image* read_image(std::istream& is, bool setId = true);
20
21} // namespace doc
22
23#endif
24