Computer Graphics

Moderators: Sephiroth
Number of threads: 1241
Number of posts: 2641

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
pixelarray? Posted by shadowomf on 12 Mar 2005 at 8:14 AM
hello,
can anybody say me how i can access the pixels of a window(maybe fullscreen) and write the colors from a array in it?

what should i use for this directdraw/3d, opengl, or just windowsfunctions?
it should be fast, easy and look smooth(i dont want to see how the screen is filled)

hope you understand my question
thanks for all replies
Report
Re: pixelarray? Posted by bog2k3 on 13 Mar 2005 at 12:15 PM
you could use windows functions to draw on the window canvas directly but if you want something really fast (and to not see how the screen is filled) you should use directdraw. first create a primary surface to which you attach a backbuffer. you blit your drawing on the backbuffer and then flip the buffers and voila! the drawing is shown on the screen in a split second.
Report
Re: pixelarray? Posted by shadowomf on 13 Mar 2005 at 4:03 PM
thanks for the help

i will try it, do you know any good tutorials about it?
Report
Re: pixelarray? Posted by bog2k3 on 17 Mar 2005 at 1:23 PM
: thanks for the help
:
: i will try it, do you know any good tutorials about it?
:

i happen to have a tutorial for u. I made it in C++ Builder 5.0.
If you want it, gimme your e-mail and i will send it to u. good luck.
Report
Re: pixelarray? Posted by ssaammll75 on 31 Jan 2006 at 5:40 AM
: : thanks for the help
: :
: : i will try it, do you know any good tutorials about it?
: :
:
: i happen to have a tutorial for u. I made it in C++ Builder 5.0.
: If you want it, gimme your e-mail and i will send it to u. good luck.
:
I could use your tutorial, please? saml75@yahoo.com.
I'm having trouble getting into a file format that is very rare, and I hope the compression is not an oddball format.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.