korasoglu Posted May 24, 2013 Share Posted May 24, 2013 Arkadaşlar Image.GetSize("Image1"); sayfa içerisindeki resmin boyutunu veriyor peki FileBrowserle gösterdiğimiz linkteki resmin boyutunu nasıl alabiliriz. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted May 24, 2013 Editor Share Posted May 24, 2013 [attachment=1060:imagesize.zip] Quote Link to comment Share on other sites More sharing options...
korasoglu Posted May 26, 2013 Author Share Posted May 26, 2013 Sevgili Pairs örnekte herşey tamam fakat seçilen resmin boyutu almam lazım yani Programın içerisindeki resmin boyutu değil. Şöyle düünüyorum Program iki resim var dikey ve yatay olmak üzere Seçtiğim resmin Width < Height ise şu Image1 load yap değilse Image2 Load yap . Slayt gibi düşün. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted May 26, 2013 Editor Share Posted May 26, 2013 (edited) O zaman yol şu :D function imagesize(path) result = DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "GetSize","\""..path.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); result = String.Replace(result, "{Width=", "", false); result = String.Replace(result, "Height=", "", false); result = String.Replace(result, ",", "", false); result = String.Replace(result, "}", "", false); width = String.Mid(result,1,4); heigth = String.Mid(result,6,4); image = {} image[1] = width image[2] = heigth return image end img = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "All Files (*.jpg*)|*.jpg*|", "", "dat", false, false); pixel = imagesize(img[1]) Dialog.Message("",pixel[1].." x "..pixel[2]); Dll Dosyası [attachment=1061:Image.rar] Edited May 27, 2013 by pairs Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.