iOS Question Canvas Resize Edge Detect...

Discussion in 'iOS Questions' started by Yvon Steinthal, Jul 4, 2018.

  1. Yvon Steinthal

    Yvon Steinthal Active Member Licensed User

    Hello,

    I'd like suggestions for this little project...

    I am trying to detect the edges (x1,x2,y1,y2) of a drawing on a canvas made by the user.
    And crop/resize that new zone to 50x50 or 100x100.

    I am unsure if that's clear enough...

    I was thinking of doing a getpixelcolor from the

    x = 0 to x = width to find x1
    y = 0 to y = height to find y1
    x = width to x = 0 to find x2
    y = height to y = 0 to find y2

    ???

    Thanks.

    Y.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. Yvon Steinthal

    Yvon Steinthal Active Member Licensed User

    Thanks Erel, resembles what i did in the end !
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice