Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Improvements for new Picture object types (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Next thread: [MBS] [ANN] 18.2pr3


[MBS] Check if ImmutableBitmap has alpha channel   -   Michael Diehr
  [MBS] Improvements for new Picture object types   -   Michael Diehr
   Re: [MBS] Improvements for new Picture object types   -   Christian Schmitz
    Re: [MBS] Improvements for new Picture object types   -   Michael Diehr
     Re: [MBS] Improvements for new Picture object types   -   Christian Schmitz

[MBS] Improvements for new Picture object types
Date: 18.04.18 16:35 (Wed, 18 Apr 2018 08:35:21 -0700)
From: Michael Diehr
Hi Christian,

This is a general feature request.

Xojo now has a complicated variety of image objects as described here:

http://developer.xojo.com/hidpi-support

In particular, Pictures now come in five flavors:

* Old style (32 bit picture + separate mask) - these are still used by the framework in some places.
* MutableBitmap (32 bit RGBA picture - no separate mask)
* ImmutableBitmap (available with SupportHiDPI is ON).
* Vector
* Image Sets (which contain multiple Pictures)

It would be nice if MBS Plugins had updates to reflect the new complexity:
* Documentation changes to clarify which type(s) are supported
* Increased support for the newer types
for example, the PictureMBS.Constructor(picture,useAlpha) could support the ImmutableBitmap type
* Deprecation for the older types as needed
* etc.

Thanks!

Mike
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Improvements for new Picture object types
Date: 18.04.18 16:51 (Wed, 18 Apr 2018 17:51:44 +0200)
From: Christian Schmitz

> Am 18.04.2018 um 17:35 schrieb Michael Diehr <<email address removed>>:
>
> Hi Christian,
>
> In particular, Pictures now come in five flavors:

Well, actually we handle 10 different kinds as per platform the types differ.

> * Old style (32 bit picture + separate mask) - these are still used by the framework in some places.

And are still my preferred type as a lot of changes need un-multiply which is difficult and slow.

> * MutableBitmap (32 bit RGBA picture - no separate mask)

Most functions still ignore alpha.

> * ImmutableBitmap (available with SupportHiDPI is ON).
> * Vector

For both, for reading, we make a clone first to get a bitmap.

> * Image Sets (which contain multiple Pictures)

We pick highest resolution bitmap for reading.


Sincerely
Christian

Re: [MBS] Improvements for new Picture object types
Date: 18.04.18 22:57 (Wed, 18 Apr 2018 14:57:28 -0700)
From: Michael Diehr
Can you explain the difference between

PictureMBS.CopyPictureWithMask
and
PictureMBS.CopyPictureWithAlpha (new in 18.0)

It sounds like WithMask gives you 32 bit RGBA data (e.g. the "new style" xojo picture)?

And WithAlpha gives you the old style 24bit RGB Picture + separate Mask picture?

Or do I have that backwards?



> On Apr 18, 2018, at 8:51 AM, Christian Schmitz <<email address removed>> wrote:
>
>> Am 18.04.2018 um 17:35 schrieb Michael Diehr <<email address removed>>:
>>
>> Hi Christian,
>>
>> In particular, Pictures now come in five flavors:
>
> Well, actually we handle 10 different kinds as per platform the types differ.
>
>> * Old style (32 bit picture + separate mask) - these are still used by the framework in some places.
>
> And are still my preferred type as a lot of changes need un-multiply which is difficult and slow.
>
>> * MutableBitmap (32 bit RGBA picture - no separate mask)
>
> Most functions still ignore alpha.
>
>> * ImmutableBitmap (available with SupportHiDPI is ON).
>> * Vector
>
> For both, for reading, we make a clone first to get a bitmap.
>
>> * Image Sets (which contain multiple Pictures)
>
> We pick highest resolution bitmap for reading.
>
> Sincerely
> Christian
>
> --
> Read our blog about news on our plugins:
>
> http://www.mbsplugins.de/
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Improvements for new Picture object types
Date: 19.04.18 07:29 (Thu, 19 Apr 2018 08:29:12 +0200)
From: Christian Schmitz

> Am 18.04.2018 um 23:57 schrieb Michael Diehr <<email address removed>>:
>
> Can you explain the difference between
>
> PictureMBS.CopyPictureWithMask
> and
> PictureMBS.CopyPictureWithAlpha (new in 18.0)
>
> It sounds like WithMask gives you 32 bit RGBA data (e.g. the "new style" xojo picture)?

No. CopyPictureWithMask invokes CopyPicture and CopyMask and sets the mask of the picture to the mask picture.

> And WithAlpha gives you the old style 24bit RGB Picture + separate Mask picture?

No. With Alpha creates new alpha picture (newer style) and copies RGB and alpha channel into it.

Sincerely
Christian