gnustep-dev
[Top][All Lists]
Advanced

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

Re: help with imagecursor


From: Adam Fedor
Subject: Re: help with imagecursor
Date: Sun, 18 Jan 2004 22:16:33 -0700


On Sunday, January 18, 2004, at 08:47 PM, Chad Hardin wrote:

I'm a bit confused about GSDisplayServer's imagecursor method:

-(void) imagecursor: (NSPoint) hotp
        :(int) w
        :(int) h
        :(int) colors
        :(const char *) image
        :(void**) cid

What exactly does the colors argument indicate? does it specify bytes per
pixel?


Yes. w, h, colors, and image are used to specify an image, like you would do with NSBitmapImageRep, although the image is assumed to have interleaved data (not planar). If colors is 4, then the image is assumed to by RGBA, although the alpha is ignored.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]