Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ej16_ImagenExterna
- Como mostrar una imagen dentro de una ventana */
- #include <radc++.h>
- Form form1("Mostrar imagen desde archivo - RAD C++ Ejemplo ");
- ImageBox ibox(AUTO_ID,0,100,50,200,200,form1); //2nd arg : 0 = no image by default
- rad_main()
- //Note : the image path must be absolute
- //if you wish to load from current folder, do not pass only image name,
- // but use Application.path + "\\filename.bmp" instead.
- //eg. C:\\ABC\\test.wmf
- //ibox.loadImage(Application.path + "\\loadimage-ext.wmf"); //load from same folder
- ibox.loadImage(Application.path + "\\pawprint.jpg"); //load from same folder
- rad_end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement