misc: additional documentation for internal image scale

This commit is contained in:
Brendan Hagan
2022-07-04 01:04:26 -04:00
parent 616fe1aad7
commit 386e5ba4a4
+6 -3
View File
@@ -40,9 +40,12 @@ void ImageValueEditor::sliceImage(const Image& image) {
GeneratedImage::Options options((int)style().width, (int)style().height, &parent.getStylePackage(), &parent.getLocalPackage());
AlphaMask mask;
style().mask.getNoCache(options,mask);
// slice
RealSize desiredSliceSize = RealSize(style().getSize().width * settings.internal_scale, style().getSize().height * settings.internal_scale);
ImageSliceWindow s(wxGetTopLevelParent(&editor()), image, desiredSliceSize, mask);
// slice
// Specify a desired size based on the stylesheet and a scale multiplier defined within the user's settings.
// 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?
if (s.ShowModal() == wxID_OK) {
// store the image into the set