Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ric Carey 50 posts 93 karma points
    Jul 17, 2013 @ 17:01
    Ric Carey
    0

    How to get an image in Razor?

    Sorry if this comes across as a stupid question but, how do i gte an image to render in razor?

     @{
                                            uImageGenerator.Web.Handler imageHandler = new uImageGenerator.Web.Handler();
                                          
                                        }
                                        @imageHandler.GenerateImage(media.NiceUrl(), width: 21, height: 324, crop: true)

    that just spits out: System.Drawing.Bitmap

     

    Im probabbly doing something stupid here i know, any ideas?

     

Please Sign in or register to post replies

Write your reply to:

Draft