Display Image to CRT screen
Display Image to CRT screen
How do you display an image JPG or BMP in a CRT screen?
Re: Display Image to CRT screen
Code: Select all
#INCLUDE "dcdialog.CH"
FUNCTION Main()
LOCAL GetList[0], oBitmap, oCrtWindow := SetAppWindow()
@ 0,0 DCSTATIC TYPE XBPSTATIC_TYPE_BITMAP ;
CAPTION '\exp20\bitmaps\wizard.bmp' ;
SIZE 600,400 PIXEL
DCREAD GUI EXIT PARENT oCrtWindow
@ 23,0 SAY 'Here is some text'
wait
RETURN nil
The eXpress train is coming - and it has more cars.
Re: Display Image to CRT screen
Wow Roger, this amazing. Thank you.
Cho cho !
Cho cho !
Re: Display Image to CRT screen
Once you have a bitmap on the screen how do you remove the bitmap to go back to the CRT Window without the bitmap?
Re: Display Image to CRT screen
Store the DCSTATIC object to a variable name:
@ .. DCSTATIC .. OBJECT oBitmapStatic
You can then manipulate it with:
oBitmapStatic:hide()
oBitmapStatic:show()
@ .. DCSTATIC .. OBJECT oBitmapStatic
You can then manipulate it with:
oBitmapStatic:hide()
oBitmapStatic:show()
The eXpress train is coming - and it has more cars.
Re: Display Image to CRT screen
Wonderful. Works as a charm.
Choo choo !
Choo choo !