Skip to content
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);

  1. Targetwidth: and maintains aspect ratio.
  2. No. of sides 3 for triangle, 5 for pentagon, 6 for hexagon, .. 8 for octagon and so on.
  3. 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.

Clone this wiki locally