https://issues.apache.org/ooo/show_bug.cgi?id=120825

          Priority: P3
            Bug ID: 120825
          Assignee: [email protected]
           Summary: Curve bitmap conversion problem
          Severity: major
        Issue Type: DEFECT
    Classification: Application
                OS: Windows XP
          Reporter: [email protected]
          Hardware: PC
            Status: UNCONFIRMED
           Version: AOO 3.4.1
         Component: formatting
           Product: drawing

Created attachment 79303
  --> https://issues.apache.org/ooo/attachment.cgi?id=79303&action=edit
Demonstration of problem.

When a curve is converted to a bitmap, the resulting bitmap is larger than the
curve by 10%, and includes empty space on two sides.

The attached file shows the problem step-by-step. The goal was to create 1/4th
of a circle which would have been 2" in diameter, with the thickness of the
line being 0.2". The grid was set to 0.05" and set to snap. Antialiasing is
off. Going from left to right in the image:

Step 1: a line was drawn at a 45 degree angle, such that horizontally and
vertically, the square the line occupied was 0.9"x0.9" This was done because
once the line thickness was changed, from a previous bug I reported, you have
to compensate for the line thickness.

Step 2: The thickness of the line was changed to 0.2"

Step 3: The line was converted to a curve, and the "handle" for the lower point
were moved so that it was 0.45" vertically, directly above the lower point, and
the handle for the upper point was moved so that it was 0.45" horizontally
directly to the left of the upper point.

Step 4: The curve had to be adjusted, because the result at that point didn't
fit in a 1"x1" box - it was too small, so the lower left point was moved down
and to the left by 0.1" and the whole curve was moved. Once repositioned, the
handles for the points were adjusted to 0.5" each.

At this point, we have what we want visually - it is a curve which is 0.9"x0.9"
with a 0.2" thickness, so it occupies a square which is exactly 1"x1".

Step 5: It was converted to a bitmap, using Modify -> Convert to Bitmap. You
have to click on the bitmap to see the problem, but the bitmap is now 1.1"x1.1"
with 0.1" of white space on the right and on the bottom.

What it looks like it might be doing is trying to extrapolate what the edges of
the curve would look like, and is adding extra space for the extrapolation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to