Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef _AUTOFILL_H_
Toshihiro Shimizu 890ddd
#define _AUTOFILL_H_
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "ttoonzimage.h"
Toshihiro Shimizu 890ddd
#include "tvectorimage.h"
Toshihiro Shimizu 890ddd
class TTileSetCM32;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void rect_autofill_learn(const TToonzImageP &imgToLearn, int x1, int y1, int x2,
Shinya Kitaoka 120a6e
                         int y2);
Shinya Kitaoka 120a6e
bool rect_autofill_apply(const TToonzImageP &imgToApply, int x1, int y1, int x2,
Shinya Kitaoka 120a6e
                         int y2, bool selective, TTileSetCM32 *tileSet);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void autofill_learn(const TToonzImageP &imgToLearn);
Shinya Kitaoka 120a6e
bool autofill_apply(const TToonzImageP &imgToApply, bool selective,
Shinya Kitaoka 120a6e
                    TTileSetCM32 *tileSet);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void rect_autofill_learn(const TVectorImageP &imgToLearn, const TRectD &rect);
Shinya Kitaoka 120a6e
bool rect_autofill_apply(const TVectorImageP &imgToApply, const TRectD &rect,
Shinya Kitaoka 120a6e
                         bool selective);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void stroke_autofill_learn(const TVectorImageP &imgToLearn, TStroke *stroke);
Shinya Kitaoka 120a6e
bool stroke_autofill_apply(const TVectorImageP &imgToApply, TStroke *stroke,
Shinya Kitaoka 120a6e
                           bool selective);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif