tahoma2d/toonz/sources/tnztools/autofill.h

28 lines
972 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef _AUTOFILL_H_
#define _AUTOFILL_H_
#include "ttoonzimage.h"
#include "tvectorimage.h"
class TTileSetCM32;
2016-06-15 18:43:10 +12:00
void rect_autofill_learn(const TToonzImageP &imgToLearn, int x1, int y1, int x2,
int y2);
bool rect_autofill_apply(const TToonzImageP &imgToApply, int x1, int y1, int x2,
int y2, bool selective, TTileSetCM32 *tileSet);
2016-03-19 06:57:51 +13:00
void autofill_learn(const TToonzImageP &imgToLearn);
2016-06-15 18:43:10 +12:00
bool autofill_apply(const TToonzImageP &imgToApply, bool selective,
TTileSetCM32 *tileSet);
2016-03-19 06:57:51 +13:00
void rect_autofill_learn(const TVectorImageP &imgToLearn, const TRectD &rect);
2016-06-15 18:43:10 +12:00
bool rect_autofill_apply(const TVectorImageP &imgToApply, const TRectD &rect,
bool selective);
2016-03-19 06:57:51 +13:00
void stroke_autofill_learn(const TVectorImageP &imgToLearn, TStroke *stroke);
2016-06-15 18:43:10 +12:00
bool stroke_autofill_apply(const TVectorImageP &imgToApply, TStroke *stroke,
bool selective);
2016-03-19 06:57:51 +13:00
#endif