yackle / CLImageEditor

MIT License
2.21k stars 573 forks source link

Duplicate CLStickerTool to load diff images #60

Closed shubhank008 closed 10 years ago

shubhank008 commented 10 years ago

Is it possible to create another (3rd tool) based on stickers or emoticons which loads a diff set of images ? I want this 3rd tool to load images from user's album, as part of my attempt to do multi image editing while using main image as a white canvas

yackle commented 10 years ago

CLImageEditor allows you to create a custom tool by inheriting CLImageToolBase. So It is going to be possible if you create such a tool.

shubhank008 commented 10 years ago

Can you provide a possible sample code or some hints to it ? I do had a rough idea it is related to CLImageToolBase related but not sure exactly where to look or start

yackle commented 10 years ago

I will not be able to present samples better than published codes. Please refer to the codes of other tools.

shubhank008 commented 10 years ago

A quick question, is there a minimum size to the images loaded via sticker tool ?

I am loading photos from a album (stored in a temp dir) in sticker tool and seems the photos have a fixed default size below which they are not resizing down to, that size seems quite a bit large though, around 1/6 or 1/8 of screen size on ipad

yackle commented 10 years ago

yeah, a sticker panel's minimum scale is fixed to 0.2 times the screen size. see #32.