Unwanted transparency in NSBezierPath?
Unwanted transparency in NSBezierPath?
- Subject: Unwanted transparency in NSBezierPath?
- From: Steve <email@hidden>
- Date: Sun, 2 Feb 2003 15:33:04 +0000
Hi,
I'm drawing simple, horizontal lines in to a subclass of NSImageView:
in my drawRect method.
[[NSColor blackColor] set];
NSPoint start = NSMakePoint(10,10);
NSPoint end = NSMakePoint(110,10);
NSBezierPath *line = [NSBezierPath bezierPath];
[line setLineWidth:1.0];
[line moveToPoint:start];
[line lineToPoint:end];
[line stroke];
The problem is they are drawing semi-transparent ; I can tell because
they look mid-grey, and gradually become black if I repeat the drawing
2 0r 3 times.
Also, they are drawing 2 pixels thick despite the [line
lineToPoint:end] message;
Are there any graphics-context globals that could be overriding my code?
Thanks
Steve
_______________________________________________
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.