1// Aseprite
2// Copyright (C) 2018 David Capello
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifndef APP_FILE_PNG_FORMAT_H_INCLUDED
8#define APP_FILE_PNG_FORMAT_H_INCLUDED
9#pragma once
10
11namespace app {
12
13 // This can be used to save opaque png files with one pixel with
14 // alpha=254, which is needed by Twitter to publish png images and
15 // avoid automatic conversion to jpg files.
16 class PngEncoderOneAlphaPixel {
17 public:
18 PngEncoderOneAlphaPixel(bool state);
19 ~PngEncoderOneAlphaPixel();
20 };
21
22} // namespace app
23
24#endif
25