Making a bitmap area proportional to a value

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Making a bitmap area proportional to a value

Offray Vladimir Luna Cárdenas-2

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
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Making a bitmap area proportional to a value

Arturo Zambrano
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 <[hidden email]> 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
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Making a bitmap area proportional to a value

abergel
In reply to this post by Offray Vladimir Luna Cárdenas-2
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 <[hidden email]> 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
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Making a bitmap area proportional to a value

Offray Vladimir Luna Cárdenas-2
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 <[hidden email]> 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
>> [hidden email]
>> https://www.list.inf.unibe.ch/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev