iamjaideep80 Posted February 16, 2007 Share Posted February 16, 2007 Hi Everybody,,,, Just trying to play with HDK Cops. I saw the "Sample Generator" code, but I don't know how to access the "x" and "y" info from the context. In "generateTile" function, i found "tiles->myX1" and "tiles->myY1" that is the Xmin and Ymin for the tile, but couldn't find the X and Y of the current pixel it is processing. Suppose I want to make a Gradient Generator from black to white, how can do that??? ------iamjaideep80 Jaideep Khadilkar (TD, Sciclone Motion Graphics) Quote Link to comment Share on other sites More sharing options...
sibarrick Posted February 17, 2007 Share Posted February 17, 2007 I haven't done much with hdk cops, but I didn't think it worked like that. Don't you just have a pointer to the start of the image data and then you can process any pixel you like by moving around the data pointed too using an offset. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.