-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Owais Idris edited this page Feb 10, 2016
·
1 revision
Welcome to the PolygonTransform wiki!
Polygon Transform for Picasso
This Transform sub class is for Picasso Library for rendering Image. Use is like any other transform. Constructor takes 3 argument.
public PolygonTransform(int targetWidth, int sides, boolean rotate);
- Targetwidth: and maintains aspect ratio.
- No. of sides 3 for triangle, 5 for pentagon, 6 for hexagon, .. 8 for octagon and so on.
- To rotate 90 degree.
*Supports both Portrait and Landscape images.
e.g Picasso.from(context).load("imagUrl").transform(new PolygonTransform(100, 6, true)).into(imageView);
Contribution: Thanks to Abhijit Mitkar & Julian Shen for his CircleTransform reference.