Jump to content

Resmi Yeniden Boyutlandırma


korasoglu
 Share

Recommended Posts

Olay yanlış tarafa gidiyor resim elbetteki büyüyünce kaçınılmaz bozulacaktır .

Yani resmi çektik 1200-600 bunu öyle bir boyutlandıralımki ekrana otursun

if en > 1000 then
yenien = en/14
yeniboy = boy/14
else
yenien = en/4
yeniboy = boy/4
end
Window.SetSize(Application.GetWndHandle(), en/2+yenien, boy/2+yeniboy);
Image.SetSize("dikresim", en/2+yenien, boy/2+yeniboy);
gibi tam mantığı oturturamadım ama sizin önerileriniz.
 
Windowsun resim potoğraf düzenleyicisinin mantığıyla aynı resmi sığdıracaz ama 1024-768 olarak düşünürsek 700 geçmiyecek.
Edited by korasoglu
Link to comment
Share on other sites

  • Editor

Page in On Size event ına.

Image.SetSize("Image1", e_WindowWidth, e_WindowHeight);

Resmide forma böyle bırakırsınız.

 

idxesdW.png

 

Çalıştıgında siz formu resize edin formun boyutuyla aynı oradanda büyülüp küçülecektir.

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...