Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1381 closed bug (fixed)

[Unflatten Picture] Pixel values differ in vertical line drawing

Reported by: laplace Owned by: jackburton
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

The following line is recorded in a BPicture:

BRect frame(0, 0, 100, 30); view->StrokeLine(BPoint(frame.left, frame.top), BPoint(frame.right, frame.bottom));

The picture is then drawn into a bitmap. Then the flattened and unflattened picture is also drawn into another bitmap. The two bitmaps are not pixel identical.

See FlattenPictureTest test application in src/tests/kits/interface/unflatten_picture/PictureTestCases.cpp http://svn.berlios.de/viewcvs/haiku/haiku/trunk/src/tests/kits/interface/flatten_picture/PictureTestCases.cpp?rev=21888&view=markup

Attachments (1)

PictureTests.png (30.0 KB) - added by laplace 12 years ago.
Screenshot of FlattenPictureTest application.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by laplace

Attachment: PictureTests.png added

Screenshot of FlattenPictureTest application.

comment:1 Changed 12 years ago by jackburton

Owner: changed from axeld to jackburton

comment:2 Changed 12 years ago by stippi

Resolution: fixed
Status: newclosed

Appears to be fixed in hrev21895. I assume the bitmap still had the contents from the previous drawing, and drawing another line at the same spot produced the doubled anti-aliasing. Now view accepting bitmaps are cleared to white by the app_server. When the test is run, it does not see a difference in the bitmaps anymore.

comment:3 Changed 12 years ago by laplace

Verified. Thank you.

Note: See TracTickets for help on using tickets.