clipTo()[solved]

Home Forums General Programming clipTo()[solved]

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #30379
    zeoka
    Participant
      • Topics: 73
      • Replies: 466
      • Total: 539
      • ★★★

      Hi
      I would clip rectangles with a rounded rectangle
      I can’t get to rectangle type value and really don’t know how to use clipTo()
      I want specify size and position of the clipping rectangle . possible ?
      Off course I’ve checked the render demo panel and clipping scripts
      but it seems different here.Someone can clear my way ?
      Edit
      clipToPath(g)
      but there is no rounded form that means add affine.transform ?
      Edit

      
      track = Path()
      track:addRoundedRectangle (19.0, 24.0, 12.0, 136.0, 4.0)
      g:reduceClipRegion(track, AffineTransform())

      found

      • This topic was modified 9 years, 6 months ago by zeoka.
      • This topic was modified 9 years, 6 months ago by zeoka.
    Viewing 1 post (of 1 total)
    • The forum ‘Programming’ is closed to new topics and replies.
    There is currently 0 users and 141 guests online
    No users are currently active
    Forum Statistics
    Threads: 2,495, Posts: 17,374, Members: 77,605
    Most users ever online was 12 on January 22, 2019 3:47 pm
    Ctrlr