-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathAsftoPic.hpp
30 lines (26 loc) · 1.41 KB
/
AsftoPic.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef ASFTOPIC_HPP_INCLUDED
#define ASFTOPIC_HPP_INCLUDED
#include "wx/wx.h"
#include "mydefs.hpp"
class CovAsftoPic
{
public:
enum FileType{T_GIF, T_PNG, T_MPC, T_ASF};
CovAsftoPic();
CovAsftoPic(const wxString inMpcFilePath, const wxString outGifFilePath);
~CovAsftoPic(){}
void Init(){}
void SetInFilePath(const wxString MpcFilePath){inFilePath = MpcFilePath;}
void SetOutFilePath(const wxString GifFilePath){outFilePath = GifFilePath;}
bool Save(FileType type = T_GIF, Palette_Colour *backcolor = NULL, unsigned char transmask = 0,
long direction = 8, long interval = 100, long bottom = 0, long left =0, bool makeshadow = 0,
long offsetsunx = 0, long offsetsuny = 0,long offsetposx = 0, long offsetposy = 0);
bool Save(const wxString OutFilePath, FileType type = T_GIF, Palette_Colour *backcolor = NULL,
unsigned char transmask = 0, long direction = 8, long interval = 100, long bottom = 0,
long left =0, bool makeshadow = 0, long offsetsunx = 0, long offsetsuny = 0,long offsetposx = 0, long offsetposy = 0)
{outFilePath = OutFilePath; return Save(type, backcolor, transmask, direction, interval, bottom, left, makeshadow,
offsetsunx, offsetsuny, offsetposx, offsetposy);}
private:
wxString inFilePath, outFilePath;
};
#endif // ASFTOGIF_HPP_INCLUDED