mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
Added image to symbol conversion
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@203 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
//+----------------------------------------------------------------------------+
|
||||
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
|
||||
//| Copyright: (C) 2001 - 2006 Twan van Laarhoven |
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_DATA_FORMAT_IMAGE_TO_SYMBOL
|
||||
#define HEADER_DATA_FORMAT_IMAGE_TO_SYMBOL
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <data/symbol.hpp>
|
||||
|
||||
// ----------------------------------------------------------------------------- : Image to symbol
|
||||
|
||||
/// Import an image as a symbol.
|
||||
/** Handles MSE1 symbols by cutting out the symbol rectangle */
|
||||
SymbolP import_symbol(Image& img);
|
||||
|
||||
/// Does the image represent a MSE1 symbol file?
|
||||
/** Does some heuristic checks */
|
||||
bool is_mse1_symbol(const Image& img);
|
||||
|
||||
/// Convert an image to a symbol, destroys the image in the process
|
||||
SymbolP image_to_symbol(Image& img);
|
||||
|
||||
// ----------------------------------------------------------------------------- : Simplify symbol
|
||||
|
||||
/// Simplify a symbol
|
||||
void simplify_symbol(Symbol&);
|
||||
|
||||
/// Simplify a symbol parts, i.e. use bezier curves instead of lots of lines
|
||||
void simplify_symbol_part(SymbolPart&);
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
Reference in New Issue
Block a user