Hi All
How can we plot the pixel without using the function putpixel(int x,int y,int color) .

Recommended Answers

All 4 Replies

actually i dnt need any function i want to xpand putpixel function

Write your own function which has the same functionality as that of putpixel. If you have no idea how to go about it, maybe it is too difficult a task for you to undertake, not to mention you would have to dwell into Assembly. Maybe this would help you in some way.

It's a meaningless question without some idea as to what your OS / Compiler / Hardware actually is.

Unless you want something vague like

struct pixel { char r, g, b; } screen[ROWS][COLS];

void putpixel ( pixel p, int r, int c ) {
    screen[r][c] = p;
Be a part of the DaniWeb community

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