[haiku-bugs] Re: [Haiku] #13584: BBitmap::ImportBits misses edge pixels

  • From: "Pete" <trac@xxxxxxxxxxxx>
  • Date: Wed, 05 Jul 2017 20:12:27 -0000

#13584: BBitmap::ImportBits misses edge pixels
----------------------------------+----------------------------
   Reporter:  Pete                |      Owner:  nobody
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  Unscheduled
  Component:  Kits/Interface Kit  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by Pete):

 Urk...  I should have remembered that! (Though actually not -- that I can
 see -- detailed in the Coordinate Space section, only in the preamble to
 BRect, and implicit in the Width()/Height() descriptions themselves.)

 However, I think the parameters in the Bitmap.h header are misleading:

 {{{
         status_t        ImportBits(const BBitmap* bitmap, BPoint from,
                                 BPoint to, int32 width, int32 height);

 }}}
 Using "width" and "height" obviously fooled both Julun (the original
 author) and me in the same way!  Maybe "pixelwidth" and "pixelheight"?

--
Ticket URL: <https://dev.haiku-os.org/ticket/13584#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: