[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Creating 1-bit and 8-bit images for fast display
|
We're are only going to work around the Windows 98 but on 98 so 1-bit images
will work on XP. The code should be going in as soon as it is tested.
"Ian Graham" <ian@xxxxxxxxxxx> wrote in message
news:opsp0liln9hrrzcq@xxxxxxxxxxx
As it turns out, on Windows SWT will create true 8-bit and 4-bit images if
created using "new Image(Device,ImageData)". 1-bit images unfortunately
get converted to 4-bit to work around a Windows 98 bug. Currently, on
Linux/GTK and Motif all images match the display depth.
Also of note is that the above mentioned constructor creates a Windows
DIB(Device Independent Bitmap), which is created in main memory. In 3.1M6
and earlier all the other constructors create a DDB(Device Dependent
Bitmap), which is created in video RAM - although a fix has since been
made that will create a DIB if the DDB creation fails due to image size or
video RAM constraints.
Ian