Jump to content

Url Ile Resim Gösterme


prototype
 Share

Recommended Posts

Direkt olarak şöyle oldu. İndirme işlemi olmadan direkt gösterme imkanımız yok dimi ?

[CODE]
HTTP.Download("http://fotocdncube.fanatik.com.tr/news/658x370_HP/2012/10/20/fft96mm1953000.jpg", "Skin\\DownImage\\img01.jpg", MODE_BINARY, 20, 80, nil, nil, nil);
Image.Load("Image1", "Skin\\DownImage\\img01.jpg");
[/CODE]

Link to comment
Share on other sites

[font=tahoma,geneva,sans-serif]Sanırım yok, denemedim ama ihtimal de vermiyorum. Çünkü mantıklı birşey değil yapmak istediğin. Tarayıcı bile gösterirken temp'e falan indiriyor yani[/font]

[font=tahoma, geneva, sans-serif]@Kazım : Web ile olur da Image objesi kadar esnek değil web. Sanırım proje skini için böyle birşey tasarlıyor. İndirip göstermesi şimdilik mantıklı olan.[/font]

Edited by DivaneTR
Link to comment
Share on other sites

[b][color=green]Kazım[/color] öyle denedim ancak kenarlardan boşluk bırakıyordu hoşuma gitmedi. [color=#66ccff]DivaneTR[/color]'nin önerdiği sistemi geliştirip kullanıcam teşekkürler.[/b]

Edited by prototype
Link to comment
Share on other sites

İşini kolaylaştıracak bir fonksiyon yazdım, tek satır kod ile artık online image gösterebileceksin.

Fonksiyon (Global Functions) ;
[CODE]
Online = {}
Online.Load = function(Img,Path)
Split = String.SplitPath(Path);
HTTP.Download(Path, _TempFolder.."\\"..Split.Filename..Split.Extension, MODE_BINARY, 20, 80, nil, nil, nil);
Image.Load(Img, _TempFolder.."\\"..Split.Filename..Split.Extension);
end
[/CODE]

Örnek Kullanım ;
[CODE]
Online.Load("Image1","http://i.imgur.com/6cTRb.png")
[/CODE]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...