wuapnjie / StickerView

[No more support] A view which can add sticker and zoom,drag,delete it
MIT License
1.27k stars 311 forks source link

rotate each sticker to a fixed angle #120

Open pawaom opened 6 years ago

pawaom commented 6 years ago

rotate each sticker to a fixed angle

how can we rotate individual sticker to a fixed angle say 90 degree or 180 degree

stickerView.zoomAndRotateCurrentSticker();

and

stickerView.zoomAndRotateSticker();

require motion event

how can we just pass an angle to the method to rotate the stickers

vishrut2207 commented 5 years ago

That is not possible in this version. you have to identify matrix of current sticker then after apply your angle in that matrix and set matrix to that sticker. this is the only way to rotate sticker.