I don't seem to be getting the correct size with an image when trying to use an imageGadget.
I'm on Windows 11 using 150% scale.
I'm using Compiler: 6.03 beta 3
I do have "Enable dpi aware executable" selected.
The imageGadget seems to be the right size when the image is not loaded, so I think imageGadget is ok.
But the image itself is not the correct size even when feeding it the WindowWidth.
Code: Select all
loading_img = LoadImage(#PB_Any, "themes/loading.png")
loading_img2 = ResizeImage(loading_img, WindowWidth(win_loading,#PB_Window_FrameCoordinate),WindowHeight(win_loading,#PB_Window_FrameCoordinate))
Debug loading_img2
ImageGadget(#PB_Any, 0,0,WindowWidth(win_loading,#PB_Window_FrameCoordinate),WindowHeight(win_loading,#PB_Window_FrameCoordinate),loading_img2,#PB_Image_Border)
alternative example
Code: Select all
loading_img = LoadImage(#PB_Any, "themes/loading.png")
Debug loading_img2
;ImageGadget(#PB_Any, 0,0,WindowWidth(win_loading,#PB_Window_FrameCoordinate),WindowHeight(win_loading,#PB_Window_FrameCoordinate),loading_img2,#PB_Image_Border)
loading_img_gadget = ImageGadget(#PB_Any, 0,0,390,WindowHeight(win_loading,#PB_Window_FrameCoordinate),0,#PB_Image_Border)
loading_img2 = ResizeImage(loading_img, GadgetWidth(loading_img_gadget,),GadgetHeight(loading_img_gadget))
SetGadgetState(loading_img_gadget, loading_img2)
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)