mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 14:07:01 -04:00
misc: additional documentation for internal image scale
This commit is contained in:
@@ -41,8 +41,11 @@ void ImageValueEditor::sliceImage(const Image& image) {
|
|||||||
AlphaMask mask;
|
AlphaMask mask;
|
||||||
style().mask.getNoCache(options,mask);
|
style().mask.getNoCache(options,mask);
|
||||||
// slice
|
// slice
|
||||||
RealSize desiredSliceSize = RealSize(style().getSize().width * settings.internal_scale, style().getSize().height * settings.internal_scale);
|
// Specify a desired size based on the stylesheet and a scale multiplier defined within the user's settings.
|
||||||
ImageSliceWindow s(wxGetTopLevelParent(&editor()), image, desiredSliceSize, mask);
|
// Storing at a greater than 100% resolution allows for better exports >100%, but may change how images look when filters (sharpen) are applied.
|
||||||
|
// Additionally, this bloats the set file size as even under-resolution images are upscaled to the new minimum size.
|
||||||
|
RealSize desired_slice_size = RealSize(style().getSize().width * settings.internal_scale, style().getSize().height * settings.internal_scale);
|
||||||
|
ImageSliceWindow s(wxGetTopLevelParent(&editor()), image, desired_slice_size, mask);
|
||||||
// clicked ok?
|
// clicked ok?
|
||||||
if (s.ShowModal() == wxID_OK) {
|
if (s.ShowModal() == wxID_OK) {
|
||||||
// store the image into the set
|
// store the image into the set
|
||||||
|
|||||||
Reference in New Issue
Block a user