converter código
olá galéra...
estou pesquisando uma maneira de pegar uma imagem de qualquer servidor e poder trabalhar com ela...
axei esse código na net, mas segundo me responderam no forum ele está em C#, e preciso converte-lo para VB
algém pode me dar um help nessa?
segue o código:
WebClient webclient = new WebClient();
using(Stream stream = webclient.OpenRead("[http://www.babooforum.com.br/idealbb/files/tuning_carro1209.jpg"))](http://www.babooforum.com.br/idealbb/files/tuning_carro1209.jpg)
{
System.Drawing.Image image = System.Drawing.Image.FromStream(stream);
Graphics draw = Graphics.FromImage( image );
int X = Convert.ToInt32( (image.Width / 2) );
int Y = Convert.ToInt32( (image.Height / 2) );
draw.DrawEllipse(new Pen(Color.Green, 10), X, Y, 80,80);
0
X = Convert.ToInt32( ( ( image.Width / 2 ) - 40 ) );
Y = Convert.ToInt32( ( ( image.Height / 2 ) + ( image.Height / 3 ) ) );
Font font = new Font("Arial", 40);
StringFormat sf = new StringFormat();
draw.DrawString("[http://weblogs.pontonetpt.com/paseixas",](http://weblogs.pontonetpt.com/paseixas) font, Brushes.Blue, X, Y, sf);
Response.ContentType="image/jpeg";
image.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
image.Dispose();
}
End Sub
agradeço
vlw http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif
Discussão (2)
Carregando comentários...