tags:

views:

74

answers:

2

Hi all,

I have to show runtime genrated image on a View in ASP.NET MVC web application. please can you suggest me how should i rrender this image (should i use aspx or ashx file) Being new to MVC i am asking this foolish question

A: 

create a bitmap object

create a graphic object based on the bitmap

use the drawstring function from the graphic object

when your done, read this

Fredou
A: 

If you choose between aspx and ashx - ashx is the better because they are lighter. In ASP.NET MVC you can also create your own ImageResult and use Controller's action to render images. You can use GDI++ to generate the images. If you need transparent images I suggest you save all images as .png files because the quallity of GDI++ generated .png-s is better than any other format.

Branislav Abadjimarinov