weird drawing problem with NSImage
weird drawing problem with NSImage
- Subject: weird drawing problem with NSImage
- From: Matt Thomas <email@hidden>
- Date: Fri, 12 Apr 2002 23:43:51 -0400
Hi, I'm having a weird drawing problem with NSImage. I have a picture I
am drawing in the bound of a view. In my drawing routine, I call:
imageRect.size = [unselectedBackground size];
[unselectedBackground drawInRect:bounds
fromRect:imageRect
operation:NSCompositeSourceOver
fraction:1.0 ];
unselectedBackground is an NSImage. A simple .tiff for the background of
the view
bounds is the bounds of the view
imageRect is the rectangle for the image.
When I first draw the view, everything is drawn perfectly. Then when I
resize the window, the image is redrawn, it's top, bottom, and sides
lose a pixel. This is odd because the size of the view doesn't change.
Is this a known bug, or have I done something wrong?
-Matt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.