Re: [gtk-list] Re: Why doesn't GTK support depths < 8 bit?



In message <19970930122517.10337@redhat.com>, Otto Hammersmith writes:
>On Tue, Sep 30, 1997 at 06:14:40PM +0200, Jost Boekemeier wrote:
>> 
>> Hi,
>> 
>> I am surprised to see that GTK only supports 
>>     
>>    possible_depths[5] = { 32, 24, 16, 15, 8 }
>> 
>> bit deep displays. 
>> 
>> Why that? It may be difficult to support 1bpp screens (dithering), but
>> what about 4bpp pseudocolor visuals?
>> 
>> Does GTK really need 256 differend colours?
>
>I do believe that's the case right now.  I don't imagine they much
>cared when gtk+ was used only for the gimp... is it really that big of
>a problem? (anyone know how much work it would be to fix it?)
>
Well, I added a function to support gtk images of depth 1 for my faxapplication.
It was trivial to add, however it doesn't support shared memory and all
that. Use:

	gtk_image_new_bitmap()

Marc.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]