| 1 | // Aseprite | 
|---|
| 2 | // Copyright (c) 2020  Igara Studio S.A. | 
|---|
| 3 | // Copyright (c) 2001-2014 David Capello | 
|---|
| 4 | // | 
|---|
| 5 | // This program is distributed under the terms of | 
|---|
| 6 | // the End-User License Agreement for Aseprite. | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef APP_UTIL_CONVERSION_TO_SURFACE_H_INCLUDED | 
|---|
| 9 | #define APP_UTIL_CONVERSION_TO_SURFACE_H_INCLUDED | 
|---|
| 10 | #pragma once | 
|---|
| 11 |  | 
|---|
| 12 | namespace doc { | 
|---|
| 13 | class Image; | 
|---|
| 14 | class Palette; | 
|---|
| 15 | } | 
|---|
| 16 |  | 
|---|
| 17 | namespace os { | 
|---|
| 18 | class Surface; | 
|---|
| 19 | } | 
|---|
| 20 |  | 
|---|
| 21 | namespace app { | 
|---|
| 22 |  | 
|---|
| 23 | void convert_image_to_surface( | 
|---|
| 24 | const doc::Image* image, | 
|---|
| 25 | const doc::Palette* palette, | 
|---|
| 26 | os::Surface* surface, | 
|---|
| 27 | int src_x, int src_y, | 
|---|
| 28 | int dst_x, int dst_y, | 
|---|
| 29 | int w, int h); | 
|---|
| 30 |  | 
|---|
| 31 | } // namespace app | 
|---|
| 32 |  | 
|---|
| 33 | #endif | 
|---|
| 34 |  | 
|---|