[MonoTouch] Image Layers and Editing

Fencer04 fencer04 at gmail.com
Fri Dec 23 09:36:11 EST 2011


That makes perfect sense, thanks for responding. I can't believe I didn't
think of that. I definitely over complicated it in my head.

Justin Hansen

On Fri, Dec 23, 2011 at 9:35 AM, Miguel de Icaza-2 [via MonoTouch] <
ml-node+s2284126n4228797h28 at n4.nabble.com> wrote:

> Hello,
>
> I have a client that is looking to created "pages" of pictures where an
>> image
>> is shown through another layer. For instance you have a white square with
>> a
>> circle cut in it and the image in under the white square and the picture
>> shows through the circle cut out. How can I offer the ability to cut and
>> crop the photo and preview the result in the scenario listed above.
>>
>
> There are many options to do this.
>
> You could create a UIView that provides its own Draw method, and in the
> draw method, you draw the rectangle, and then use a clipping path for a
> circle and draw the image on top of it.
>
> Another option would be to create an image with the rectangle that has a
> transparent hole with the circle in the middle.   Then add your image to
> the view, and then add this image with the hole on top of it.
>
> UIImageView image = new UIImageView (UIImage.FromFile ("image.png"));
> UIImageView rectangleWithHole = new UIImageView (UImage.FromFile
> ("imageWithHole.png"));
>
> view.AddSubview (image);
> view.AddSubview (rectangleWithHole);
>
> Miguel
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4228797&i=0>
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://monotouch.2284126.n4.nabble.com/Image-Layers-and-Editing-tp4226591p4228797.html
>  To unsubscribe from Image Layers and Editing, click here<http://monotouch.2284126.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4226591&code=ZmVuY2VyMDRAZ21haWwuY29tfDQyMjY1OTF8LTEzNTAzMDA2MzQ=>
> .
> NAML<http://monotouch.2284126.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Justin Hansen
http://www.klickwerx.com
Need some technology help? - http://www.betterfly.com/LearnTheWeb


--
View this message in context: http://monotouch.2284126.n4.nabble.com/Image-Layers-and-Editing-tp4226591p4228800.html
Sent from the MonoTouch mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111223/36e4f5df/attachment.html 


More information about the MonoTouch mailing list