Merhaba Batuhan, To my knowledge, there are ways to do that in GEM.
- Loading images to see them in a window comes in pretty easy. Just use the [pix_image] and/or [pix_multiimage} to actually load the stuff (I personnaly use the tiff format for uncompressed images). Then use [pix_texture] to apply them to a basic GL shape like [rectangle] or [square] depending on the aspect ratio of the picture. Building a subpatch/abstraction that detects this ratio and adapts the rectangle size accordingly shouldn't be very complicated, I have an abstraction hanging around that I could give you if you wish. - Getting pixel color can apparently be done with [pix_data]. See help file, never used it yet... - [gemmouse] is your friend to get mouse coordinates and button information from inside the gemwin. ++ Jé Batuhan Bozkurt a écrit : > Hello, > > I'm mostly using the audio capabilities of PD and now I need this > functionality to port my image synthesizer I've made in Max/MSP > before(which was a pain while building because of the audiorate rounding > errors in Max/MSP) to PD. I was using the LCD object in there. > > The functionality I need is: > * I want to be able to read images into a window to see its > contents(being able to load uncompressed images are enough) > * A message like "getpixel x y" should return me the RGB values of that > pixel > * It would be nice to be able to draw single pixels with mouse at > least...(can be implemented with something like "setpixel x y r g b" > > I know that people are doing fancy stuff with GEM and other libraries > but I really don't know what to chase for this simple task. > > Thanks in advance > > Batuhan > > _______________________________________________ > PD-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > > _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list