[haiku-bugs] [Haiku] #11196: Tiled bitmap drawing

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 03 Sep 2014 12:02:38 -0000

#11196: Tiled bitmap drawing
--------------------------------+------------------------------
 Reporter:  pulkomandy          |        Owner:  stippi
     Type:  enhancement         |       Status:  new
 Priority:  normal              |    Milestone:  R1
Component:  Servers/app_server  |      Version:  R1/Development
 Keywords:                      |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+------------------------------
 Currently the only way to draw a tiled bitmap is to use SetViewBitmap with
 the B_BITMAP_TILE option.

 Some websites (eg http://amigaimpact.org) use 1x2 pixel bitmaps to draw
 line patterns in most of the webpage. Currently WebKit implements this
 using a loop calling DrawBitmapAsync(), but this is much slower than it
 needs to be.

 We already have a DrawBitmap call taking an "options" parameter. Currently
 it's only used to set bilinear filtering. We could add support for
 B_TILED_BITMAP as a new option bit there.

 WebKit also supports a "phase" (so the top-left of the source rect may not
 be drawn at the same position as the top-left of the destination rect),
 and an affine transform of the source before drawing (which needs special
 care to make the end result easily tileable). These two would probably
 need an extension of our API.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11196>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: