Re: Problem with drawBackgroundForGlyphRange:atPoint:.
Re: Problem with drawBackgroundForGlyphRange:atPoint:.
- Subject: Re: Problem with drawBackgroundForGlyphRange:atPoint:.
- From: Aki Inoue <email@hidden>
- Date: Tue, 1 Aug 2006 22:27:02 -0700
-drawBackgroundForGlyphRange:atPoint: renders the background with
NSCompositeCopy so the multiplied value is used as is instead of
blended with the existing color.
If what you need is just to fill the selection background rects, you
can manually get the fill rects via -
rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount
:.
In the meantime, please file an enhancement request.
Thanks,
Aki
On Aug 1, 2006, at 10:02 PM, praveen kumar wrote:
Good Morning,
I am drawing text on the custom view using
NSLayoutManger methods.
- (void)drawBackgroundForGlyphRange:(NSRange)glyphRange
atPoint:(NSPoint)containerOrigin;
- (void)drawGlyphsForGlyphRange:(NSRange)glyphRange
atPoint:(NSPoint)containerOrigin;
When i decrease the opacity of the BackgroundColor of the text to
zero, it
is drawing black color and also not transparent.
It is working fine for ForegroundColor.
Please could any one suggest any idea to achieve background
transparency.
Thanks a lot.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden