[Cuis-dev] ImageMorph padding

Juan Vuletich juan at cuis.st
Sat Sep 14 12:08:44 PDT 2024


On 9/14/2024 8:54 AM, Mariano Montone via Cuis-dev wrote:
> ImageMorph also paints a background color too. I'd rather it didnt do 
> it, as that is not part of the image. So again either subclass from 
> BoxMorph or set it to transparent by default.
>
> El vie, 13 de sept de 2024, 19:45, Mariano Montone 
> <marianomontone at gmail.com <mailto:marianomontone at gmail.com>> escribió:
>
>     Hi,
>
>     I've not followed the Morph changes discussion closely, but I see
>     that
>     ImageMorph shows with a padding by default. That ruins some of my
>     applications where I use ImageMorph.
>
>     I could update my applications to the new Morphs but I think it
>     would be
>     better for ImageMorph to show no padding by default.
>
>     You can observe this just by doing: ImageMorph new openInWorld.
>
>     I'm also not sure if making ImageMorph subclass from BorderedBoxMorph
>     makes sense, I think I would just subclass it from BoxMorph.
>
>     Cheers,
>
>              Mariano
>

Hi Mariano.

I changed default border and padding to be zero. Check #drawOn:, it 
won't draw background unless needed.

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240914/1fd3a061/attachment.htm>


More information about the Cuis-dev mailing list