On 3/21/06, Quentin Mathé <[EMAIL PROTECTED]> wrote: > Le 21 mars 06 à 18:07, Yen-Ju Chen a écrit : > > > On 3/21/06, Banlu Kemiyatorn <[EMAIL PROTECTED]> wrote: > > > >> On 3/20/06, Yen-Ju Chen <[EMAIL PROTECTED]> wrote: > >> [snip] > > > The file format of XPM is relatively simple in my opinion. > > I just cannot figure how to put stuff into NSImage. > > You shouln't put the code in NSImage but in NSBitmapImageRep or > precisely in an NSBitmapImageRep category. > Here is NSBitmapImageRep header : <http://svn.gna.org/viewcvs/gnustep/ > libs/gui/trunk/Headers/AppKit/NSBitmapImageRep.h> > [snip] > > - (id) initWithBitmapDataPlanes: (unsigned char**)planes > pixelsWide: (int)width > pixelsHigh: (int)height > bitsPerSample: (int)bps > samplesPerPixel: (int)spp > hasAlpha: (BOOL)alpha > isPlanar: (BOOL)isPlanar > colorSpaceName: (NSString*)colorSpaceName > bytesPerRow: (int)rowBytes > bitsPerPixel: (int)pixelBits; >
Well, if I can figure out all these arguments, I won't call for help at the beginning. :P The only thing I need is to read the XPM from XWindow and use it as NSImage on the taskbar which is written with GNUstep. Yen-Ju [snip] > Quentin. > > -- > Quentin Mathé > [EMAIL PROTECTED] > > > _______________________________________________ > Etoile-discuss mailing list > [email protected] > https://mail.gna.org/listinfo/etoile-discuss > _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
