inheritFromContext

Stuart Axon's Avatar

Stuart Axon

02 Feb, 2014 03:38 PM

What does path.inheritFromContext do ?

  1. Support Staff 1 Posted by Frederik De Ble... on 03 Feb, 2014 09:40 AM

    Frederik De Bleser's Avatar

    Normally, when you create a BezierPath using beginpath and drawpath it takes the curent fill and stroke settings from the drawing context. If you create a BezierPath by calling its constructor, it doesn't. If you dow want to use the currently set fill and stroke color, you can use inheritFromContext.

    All NodeBox drawing functions, including drawpath, use inheritFromContext internally. (For example rect)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

17 Jun, 2025 06:15 AM
17 Jun, 2025 06:11 AM
16 Jun, 2025 02:18 AM
11 Jun, 2025 10:57 AM
11 Jun, 2025 09:53 AM

 

10 Jun, 2025 08:03 AM
10 Jun, 2025 01:33 AM
08 Jun, 2025 09:25 AM
08 Jun, 2025 09:19 AM
08 Jun, 2025 09:19 AM
08 Jun, 2025 09:18 AM