mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 21:47:00 -04:00
New image functions:
* invert * flip_horizontal * flip_vertical * rotate git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1472 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+9
-2
@@ -74,8 +74,12 @@ inline double rad_to_deg(double rad) { return rad * (180.0 / M_PI); }
|
||||
inline double deg_to_rad(double deg) { return deg * (M_PI / 180.0); }
|
||||
|
||||
/// Rotates an image counter clockwise
|
||||
/// angle must be a multiple of 90, i.e. {0,90,180,270}
|
||||
Image rotate_image(const Image& image, int angle);
|
||||
Image rotate_image(const Image& image, double angle);
|
||||
|
||||
/// Flip an image horizontally
|
||||
Image flip_image_horizontal(const Image& image);
|
||||
/// Flip an image vertically
|
||||
Image flip_image_vertical(const Image& image);
|
||||
|
||||
// ----------------------------------------------------------------------------- : Blending
|
||||
|
||||
@@ -98,6 +102,9 @@ void mask_blend(Image& img1, const Image& img2, const Image& mask);
|
||||
/// Saturate an image
|
||||
void saturate(Image& image, double amount);
|
||||
|
||||
/// Invert the colors in an image
|
||||
void invert(Image& img);
|
||||
|
||||
// ----------------------------------------------------------------------------- : Combining
|
||||
|
||||
/// Ways in which images can be combined, similair to what Photoshop supports
|
||||
|
||||
Reference in New Issue
Block a user