Problem with Gdiapi TestCase 225: LineTO
- From: gaurav.jairath@xxxxxxxxx
- Date: 23 Jan 2007 22:21:08 -0800
Hi All,
I am trying to accelerate The GDI function DrvStrokePath for drawing
Lines using a proprietory algorithm. But my proprietory solution for
drawing lines is not pixel accurate with the GDI Line Drawing Function
which uses Bresenham's algorithm. The horizontal and vertical lines are
pixel accurate though. Problem is with Diagonal lines only.
So although some of the GdiApi Test cases pass, a particular test case
id 225 "LineTo" sometimes fails. It fails in a particular use case
which is RandomLineToTest, which draws line between random coordinates.
SO although some TestCases Like TestCase id 210 which draws Polygon and
id 211 polyline pass, even though my lines are not pixel accurate, the
test case id 225 arbtirarily passes or fails.
I have already seen that for Horizontal and Vertical lines, variance
from Bresenham's algorithm is 0. I wanted to know what is the maximum
variance allowed from the standard Bresenham's algorithm for drawing
diagonal lines, in order to pass the Test Case. And can this variance
limit be increased.
Any help in this regard is highly appreciated.
Gaurav Jairath
.
- Prev by Date: Re: To communicate with Bluetooth module
- Next by Date: Windows CE 5.0 USB Function Bus Drivers for Geode LX?
- Previous by thread: USB host controller and client driver
- Next by thread: Windows CE 5.0 USB Function Bus Drivers for Geode LX?
- Index(es):
Relevant Pages
|