Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Firefox, Safari ne podržavaju GDI+ ili šta?

[es] :: .NET :: ASP.NET :: Firefox, Safari ne podržavaju GDI+ ili šta?

[ Pregleda: 278 | Odgovora: 3 ]

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

artriba
Split

Član broj: 158342
Poruke: 109
*.adsl.net.t-com.hr.



Profil

icon Firefox, Safari ne podržavaju GDI+ ili šta?07.02.2008. u 17:44

Recimo ovaj kod uredno radi na IE7 dok na Safariju ili FF dobijam hijeroglife
Code:
private void Page_Load(object sender, System.EventArgs e)
  {
   
   Bitmap bm = new Bitmap(200, 200);
   Graphics g = Graphics.FromImage(bm);
   g.FillRectangle(brush, 50, 50, 100, 100);
   g.DrawLine(Pens.WhiteSmoke, 10, 10, 180, 10);
   g.DrawLine(Pens.White, 10, 10, 10, 180);
   bm.Save(Response.OutputStream,ImageFormat.Jpeg);
 
  }
07.02.2008. u 17:44 

Shadowed
.NET developer

SuperModerator
Član broj: 649
Poruke: 8676
212.200.70.*

Sajt: www.diskusije.net


Profil

icon Re: Firefox, Safari ne podržavaju GDI+ ili šta?07.02.2008. u 18:08
Dodaj Response.ContentType = "image/jpg"; pre save-a. A korisno je i Response.AppendHeader("content-disposition", "attachment; filename=imeslike.jpg");
07.02.2008. u 18:08 

mmix
Miljan Mitrovic
Software Architect
Pancevo, Srbija

Moderator
Član broj: 17944
Poruke: 1612
195.252.78.*



Profil

icon Re: Firefox, Safari ne podržavaju GDI+ ili šta?07.02.2008. u 18:08
Moras da podesis contenttype na "image/jpeg"


▪ The word 'politics' is derived from the word 'poly', meaning 'many', and the word 'ticks', meaning 'blood sucking parasites' - Larry Hardiman
▪ If the good guy gets the girl, it's rated PG; if the bad guy gets the girl, it's rated R; and if everybody gets the girl, it's rated X
▪ Illegal aliens have always been a problem in the United States. Ask any Native American
07.02.2008. u 18:08 

artriba
Split

Član broj: 158342
Poruke: 109
*.adsl.net.t-com.hr.



Profil

icon Re: Firefox, Safari ne podržavaju GDI+ ili šta?07.02.2008. u 18:27
thx guys
07.02.2008. u 18:27 

[es] :: .NET :: ASP.NET :: Firefox, Safari ne podržavaju GDI+ ili šta?

[ Pregleda: 278 | Odgovora: 3 ]

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.