Android Question Draw iregular shapes (canvas and clip options) ?

Discussion in 'Android Questions' started by hookshy, Apr 19, 2015.

  1. hookshy

    hookshy Well-Known Member Licensed User

    I have 100 iregular shapes that could not be defined by lines, arcs or curves using canvas path.
    To have a nice color scheme I must add color to that shapes.

    Instead of changing colors to bitmaps and load 1000 png files to dirAssets there might be a solution to
    draw the shape bitmap using canvas and clip options.

    Simple isn't it ..?
    Q: How do you draw diferent colors iregular shapes ?
    shape will be filled with opac color , only the shape will be drawn

    here is a sample from www [​IMG]
  2. Erel

    Erel Administrator Staff Member Licensed User

    Create a template image where only the shape interior is transparent. Now you can put this image on a panel and draw the colors on the panel.
    RandomCoder and klaus like this.
  3. hookshy

    hookshy Well-Known Member Licensed User

    Excellent idea , thanks
  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