URL:
  <http://savannah.gnu.org/bugs/?18260>

                 Summary: NSBitmapImage is offset using art backend
                 Project: GNUstep
            Submitted by: tracy454
            Submitted on: Sunday 11/12/2006 at 07:57
                Category: Backend
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

I have been working on NSBitmapImage, and in the course of testing other
things, I see that the following code gives a mis-aligned image:
  [aView lockFocus];
  NSBitmapImageRep *imgRep = [[NSBitmapImageRep alloc]
initWithFocusedViewRect: [aView bounds]];
  [aView unlockFocus];
  NSData *tiffRep = [imgRep TIFFRepresentation];

The image is off by 5 pixels in both the X and Y coordinates. That is a very
strange number for the offset. The sample image happens to be a slider
control with a black border.

This problem did not occur with gnustep-back-0.11.0, but appeared in
back-0.12 in the SVN. It only happens with the art backend, the xlib backend
works for both versions. (I can't build the cairo backend, or I would have
tested that too.) The bug occurs with my experimental GIF and JPEG code too.

System: gnustep-core svn rev 24050; Suse Linux 10.1; gcc 4.1





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sunday 11/12/2006 at 07:57  Name: slider(art)(r24050).tif  Size: 5kB  
By: tracy454
sample image showing misalignment
<http://savannah.gnu.org/bugs/download.php?file_id=11235>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?18260>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to