Hello,
I try to write a program, that uses PutImage.
It works under Linux and under Dos, but not under Windows. Isn't that yet implemented in 1.0.4?
Will it work in later versions?

Mailing lists / fpc-pascal / 2001-11
6 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hello,
I try to write a program, that uses PutImage.
It works under Linux and under Dos, but not under Windows. Isn't that yet implemented in 1.0.4?
Will it work in later versions?
Andreas K. Foerster wroteI try to write a program, that uses PutImage. It works under Linux and under Dos, but not under Windows. Isn't that yet implemented in 1.0.4?
For all platforms, putimage currently simply calls putpixel for each pixel of the image to draw it, so if putpixel works, so should putimage.
Jonas
I found the real problem.
Altough I set Windows to HiColor, the InitGraph chose a mode with MaxColor=256 ???
A Putpixel with a higher color-value hangs the system! And my image was for a 16Bit mode.
Because the graph unit for windows doesn't know HiColor and TrueColor modes :(
The windows graph unit is an ugly hack (done by me...) to get old TP DOS programs working on a windows desktop.
A Putpixel with a higher color-value hangs the system! And my image was for a 16Bit mode.
Florian Klaempfl wroteBecause the graph unit for windows doesn't know HiColor and TrueColor modes :(
Okay, it's not so important.
I just didn't know it.
to get old TP DOS programs working on a windows desktop.
Don't say it that way.
It is good to have a common interface to graphical programming on most supported platforms.
you wrote> to get old TP DOS programs working on a windows desktop. Don't say it that way.
I meant it was the reason why I wrote the win32 graph unit.
It is good to have a common interface to graphical programming on most supported platforms.