Most programming languages have a "gadget" to keep an image within a limited area of a window (i.e. "picturebox" in Visual Basic, or "canvas" in rapidq) so that if an image doesn't fit inside the defined area the part that doesn't fit is not displayed.
I can't figure out how to do this is Purebasic and it's image and ImageGadget commands; if I load a large picture it always covers the whole window and the gadgets inside it.
Anyone knows how to define such a "drawing-area" ?
Keeping an image within an enclosed area
The image is appearing outside the image gadget when the image is larger than the image gadget??
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
use a containergadget to hold the imagegadget
Even if imagegadget is bigger than container, it will be clipped
Even if imagegadget is bigger than container, it will be clipped
Code: Select all
ContainerGadget(#Container_0, 90, 100, 440, 340)
ImageGadget(#Image_0, 0, 0, 640, 480, Image0)
CloseGadgetList()