gamut icon indicating copy to clipboard operation
gamut copied to clipboard

Layout constraint lost on .convert and Gamut v4

Open p0nce opened this issue 9 months ago • 1 comments

        image.setLayout(LAYOUT_GAPLESS | LAYOUT_VERT_STRAIGHT);
        image.convertTo(PixelType.rgb8); // if there is a conversion, then the above constraints are lost, because there is no LAYOUT_KEEP by default

breaks expectations

p0nce avatar Mar 02 '25 21:03 p0nce

Actually very annoying!

  • [ ] Create LAYOUT_KEEP constant
  • [ ] Any public call that manipulates storage preserves layout constraints by default (but of course, no content outside of valid area such as borders)

This will be for a next major tag.

p0nce avatar Apr 30 '25 09:04 p0nce