Back again I'm returning with a problem, which may also just be a problem of the PCs I run with Ubuntu 6.10 .
Under Windows XP everything wents fine... I can grab images and pixmaps, manipulate them and so on.
But under Ubuntu (so may be Linux) the "grabimage" and "grabpixmap"-commands only return garbage or blackscreens (when doing some imagecreations on black screens).
the following code works fine under XP, but under Ubuntu... only the white rects are drawn...
Hope someone could give me a hint how to solve this problem,
bye
MB
Under Windows XP everything wents fine... I can grab images and pixmaps, manipulate them and so on.
But under Ubuntu (so may be Linux) the "grabimage" and "grabpixmap"-commands only return garbage or blackscreens (when doing some imagecreations on black screens).
the following code works fine under XP, but under Ubuntu... only the white rects are drawn...
SetGraphicsDriver GLMax2DDriver() g = Graphics(640, 480, 0, 60, 0) 'draw something and then grab it... SetColor 255,255,0 DrawLine(10,10,40,40) DrawLine(20,20,40,40) Plot(Rnd(10),Rnd(10)) Local Img:TImage = TImage.Create(30,30, 1, DYNAMICIMAGE,255,255,255) GrabImage(img, 10,10) Local Pix:TPixmap = GrabPixmap(10,10,40,40) Repeat Cls SetColor 255,255,255;DrawRect(Rand(100),Rand(100),30,30) DrawImage(img, 400+Rand(60),Rand(60)) DrawPixmap(pix, 200+Rand(60), 200+Rand(60)) Flip Until AppTerminate()
Hope someone could give me a hint how to solve this problem,
bye
MB