mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add bleed edge option, get_card_export_settings function
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
/// Resample (resize) an image, uses bilenear filtering
|
||||
void resample(const Image& img_in, Image& img_out);
|
||||
Image resample(const Image& img_in, int width, int height);
|
||||
Image resample(const Image& img_in, double zoom);
|
||||
|
||||
/// Resamples an image, first clips the input image to a specified rectangle
|
||||
/** The selected rectangle is resampled into the entire output image */
|
||||
|
||||
@@ -134,6 +134,9 @@ Image resample(const Image& img_in, int width, int height) {
|
||||
return img_out;
|
||||
}
|
||||
}
|
||||
Image resample(const Image& img_in, double zoom) {
|
||||
return resample(img_in, (int)(img_in.GetWidth() * zoom), (int)(img_in.GetHeight() * zoom));
|
||||
}
|
||||
|
||||
void resample_and_clip(const Image& img_in, Image& img_out, wxRect rect) {
|
||||
// mask to alpha
|
||||
|
||||
Reference in New Issue
Block a user