Advertisement
idsystems

CPP_RAD_Ejercicio16

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