I need to write equivalent 'c' code for vb code.........

ImageScreen.Graphics.Pixel(i,j)  = cmy(0,0,0)

how to write a function for cmy in c language

I doubt if anyone here knows what the specs are for VB graphics to emulate it precisely. Google "graphic libraries for C", and you should come up with something - there are several - some simple, some for only certain operating systems, etc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.