On Sun, 06 Nov 2005 10:42:26 +0100
dannym <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Am Sonntag, den 06.11.2005, 10:39 +0100 schrieb Mattias Gaertner:
> > On Sun, 06 Nov 2005 05:33:00 +0100
> > dannym <[EMAIL PROTECTED]> wrote:
> > 
> > > Hi,
> > > 
> > > Am Sonntag, den 06.11.2005, 02:39 +0100 schrieb Mattias Gaertner:
> > > > Can you add 
> > > >   DebugLn('TGtkWidgetSet.GetRawImageFromGdkWindow GdkWindow is ...
> > > > ',RawImageDescriptionAsString(@NewRawImage.Description));
> > > > 
> > > TGtkWidgetSet.GetRawImageFromGdkWindow GdkWindow is ... 
> > > Format=ricfRGBA HasPalette=false Depth=24 Width=48 Height=48
> > > PaletteColorCount=0 BitOrder=riboBitsInOrder ByteOrder=riboLSBFirst
> > > LineOrder=riloTopToBottom ColorCount=0 BitsPerPixel=32
> > > BytesPerLine=192 LineEnd=rileDWordBoundary RedPrec=8 RedShift=16
> > > GreenPrec=8 GreenShift=8 BluePrec=8 BlueShift=0 AlphaSeparate=true
> > > AlphaPrec=1 AlphaShift=0 AlphaBitsPerPixel=1
> > > AlphaLineEnd=rileByteBoundary AlphaBitOrder=riboBitsInOrder
> > > AlphaByteOrder=riboLSBFirst AlphaBytesPerLine=6
> > 
> > Looks pretty normal.
> > Ok, so gdk_image_get creates a different BitsPerPixel than
> > gdk_window_get_visual.
> > I'm no gdk expert, so I can't help here.
> 
> I can try reproducing in simple gtk code. What is the gdkwindow passed
> to gdk_image_get ? a gdkpixmap ? another gdkimage ? a gdkbitmap ? A real
> gdkwindow ?

A TBitmap.Handle is normally created with gdk_pixmap_new, so it shoudl be a
PGdkPixmap.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to