Opened 17 years ago

Closed 17 years ago

Last modified 17 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:
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 17 years ago.
Screenshot of FlattenPictureTest application.

Download all attachments as: .zip

Change History (4)

by laplace, 17 years ago

Attachment: PictureTests.png added

Screenshot of FlattenPictureTest application.

comment:1 by jackburton, 17 years ago

Owner: changed from axeld to jackburton

comment:2 by stippi, 17 years ago

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 by laplace, 17 years ago

Verified. Thank you.

Note: See TracTickets for help on using tickets.