Hi,
I can arrange elements in a visualization where the size/area of an RTBox is proportional to a specified value, like here:
or I can made all avatars (RTBitmaps) appear into this one:
But I would like to combine both, making the avatars area proportional to a given value and present them in a RTFlowLayout. Is this possible and how?
Thanks,
Offray
Hi Offray, this snippet may help...
squareResize: aForm to: size | newForm | newForm := Form extent: size @ size depth: aForm depth. (WarpBlt current toForm: newForm) sourceForm: aForm; colorMap: (aForm colormapIfNeededFor: newForm); cellSize: 2; combinationRule: 3; copyQuad: aForm boundingBox innerCorners toRect: newForm boundingBox. ^ newForm
of course then you use the Form, and put it into the RT machinery.
best regards
On Sun, Jul 3, 2016 at 12:21 AM, Offray Vladimir Luna Cárdenas < offray.luna@mutabit.com> wrote:
Hi,
I can arrange elements in a visualization where the size/area of an RTBox is proportional to a specified value, like here:
or I can made all avatars (RTBitmaps) appear into this one:
But I would like to combine both, making the avatars area proportional to a given value and present them in a RTFlowLayout. Is this possible and how?
Thanks,
Offray
Moose-dev mailing list Moose-dev@list.inf.unibe.ch https://www.list.inf.unibe.ch/listinfo/moose-dev
Hi Offray!
Just to make clear I am understanding correctly, you want to scale a bitmap, based on a given metric. Is that right?
Alexandre
On Jul 3, 2016, at 5:21 AM, Offray Vladimir Luna Cárdenas offray.luna@mutabit.com wrote:
Hi,
I can arrange elements in a visualization where the size/area of an RTBox is proportional to a specified value, like here:
<ciminpknloldbifd.png>
or I can made all avatars (RTBitmaps) appear into this one:
<aehbdmimebjfkdai.png>
But I would like to combine both, making the avatars area proportional to a given value and present them in a RTFlowLayout. Is this possible and how?
Thanks,
Offray
Moose-dev mailing list Moose-dev@list.inf.unibe.ch https://www.list.inf.unibe.ch/listinfo/moose-dev
Yes Alexandre. That's right. Scale them and the put it in a particular layout.
Cheers,
Offray
On 03/07/16 04:29, Alexandre Bergel wrote:
Hi Offray!
Just to make clear I am understanding correctly, you want to scale a bitmap, based on a given metric. Is that right?
Alexandre
On Jul 3, 2016, at 5:21 AM, Offray Vladimir Luna Cárdenas offray.luna@mutabit.com wrote:
Hi,
I can arrange elements in a visualization where the size/area of an RTBox is proportional to a specified value, like here:
<ciminpknloldbifd.png>
or I can made all avatars (RTBitmaps) appear into this one:
<aehbdmimebjfkdai.png>
But I would like to combine both, making the avatars area proportional to a given value and present them in a RTFlowLayout. Is this possible and how?
Thanks,
Offray
Moose-dev mailing list Moose-dev@list.inf.unibe.ch https://www.list.inf.unibe.ch/listinfo/moose-dev