[haiku-development] Re: bitmap scaling options

philippe.houdoin@xxxxxxx wrote:
> Ingo said:
> 
> > Since it is a rendering option, IMHO it should be (in decreasing order 
> > of preference) a parameter to BView::DrawBitmap(), a graphics state 
> > option, or
> > a BView flag. Sticking such an option to the BBitmap is just as badly 
> > fitting as setting the color on a BFont.
> 
> +1
> 
> My preference will go for a graphics state option 
> (BView::[Set]BitmapScalingMode()), the default mode being set to one who 
> fit the most case. If bilinear doesn't hit that much, I'm for making the 
> default mode.

I went with adding another DrawBitmap() call that takes options for now. 
For the case it is actually used, this a little less of a performance hit. 
For the case that it is not used, each "draw bitmap" command to the 
app_server is now 4 bytes longer. Shouldn't be a big deal at all.

Best regards,
-Stephan

Other related posts: