[Mono-dev] Bitmap manipulation - am I doing it right?

Stifu stifu at free.fr
Wed Apr 1 02:12:19 EDT 2009

"Only let it grow bigger": you mean that if I shrink the window, I don't
reduce the size of the Bitmap, but only when I make the window larger? I was
going to say that's inefficient, but thinking about it... Now that I
implemented clipping, only the hovered paint is repainted, which means that
it shouldn't matter if I paint a Bitmap that's bigger than the Panel. In
which case, I'd only need a single full Bitmap for my Panel, not a partial
Sounds good, I'll have to try it! I'll let you know.

robiwan wrote:
> Stifu skrev:
>> 2) How would you do this, technically? Because the only solution that
>> comes
>> to my mind is to clone a little part of my Bitmap to create the temporary
>> copy... and making a sub-sized clone of a Bitmap is actually much slower
>> than making a full clone. So it'd be actually slower than my current
>> implementation.
> Make a clone which you then hold on to, and only let it grow bigger. Then
> you use that bitmap
> for the operation, i.e. it only has to be created once, used many times.
> Makes sense?
> /Rob
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

View this message in context: http://www.nabble.com/Bitmap-manipulation---am-I-doing-it-right--tp22800298p22820380.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list