Code: Select all
LoadImage(0,#PB_Compiler_Home+"Examples\Sources\Data\Geebee2.bmp") ; 128 x 128 pixels.
OpenWindow(0,0,0,640,320,"Image Scale",#PB_Window_SystemMenu)
ImageGadget(1,10,10,0,0,ImageID(0)) ; Shown at 128 x 128 (the actual image size, hence why W/H are both set to 0).
ImageGadget(2,200,10,256,256,ImageID(0)) ; Want this ImageGadget to be 256 x 256 without resizing or copying the image.
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow