Tengo el siguiente código:
Código:
Al visualizarlo en mi navegador me da la imágen con elt exto ya escrito.<%@ Page Language="vb" %> <%@ import namespace="system.drawing" %> <%@ import namespace="system.drawing.imaging" %> <%@ import namespace="system.drawing.drawing2d" %> <% ' initialise objects Dim strFilename as string Dim b as new System.Drawing.Bitmap(server.mappath("images/1.jpg")) dim g as graphics = graphics.fromimage(b) g.smoothingMode = smoothingMode.antiAlias Dim stringFormat As New StringFormat() stringFormat.FormatFlags = StringFormatFlags.DirectionVertical g.drawString("www.dechihuahua.com", new font("arial",12,fontstyle.bold),Brushes.white, new pointF(0,5), stringFormat) ' set the content type response.contenttype="image/jpg" ' send the image to the viewer b.save(response.outputstream, b.rawformat) ' tidy up b.dispose() %>
El problema es que cuando la quiero bajar (click derecho y guardar) me baja el código y no la imágen.
¿Será por el tipo de output? ya intenté llamándolo desde un include en una página .asp pero no funciona.
Gracias por su tiempo
