Thread: Showing pictures on display in real time

  1. #1
    Registered User BlackOps's Avatar
    Join Date
    Jul 2009
    Location
    AZERBAIJAN
    Posts
    78

    Lightbulb Showing pictures on display in real time

    I will work with BMP images on the embedded FPGA system and display them on custom VGA controller... so, now i want to work and process BMP images here on PC with C first. I plan to read BMP images, then process them... i can save processed images...

    but i thought, that it would be nice to see the result of processing immediately...is it possible here on windows? i know that its possible if i use Windows API and C, right?

    is there another way? some another package maybe? where i could send my pixels from memory and see the result immediately...not just do all the work...then open saved BMP file and see whats there...

    and i'm not going to go into C++ or go far in windows api... so...what u think is fastest solution for this case?

    thankx

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    You can use some Image loading function in windows, if you want. It will read the file.
    Then you need to use GDI or some graphics-related API to draw on the screen/window.
    Usually, you would load your image and the pixels are stored in an array which are then blitted to the window/screen.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User BlackOps's Avatar
    Join Date
    Jul 2009
    Location
    AZERBAIJAN
    Posts
    78
    i heard there is some kind of TCL package for such purposes is there? i'm searching google now...cant find something like that what i need yet..

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I don't know what TCL is. I'm sure there are libraries for this kind of task, however.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    Jan 2011
    Location
    Venezuela
    Posts
    6
    Check Cone3D Programming - SDL, OpenGL and C++ Tutorials which is a very simple and fast solution.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. time.h Display time
    By SlimDady in forum C++ Programming
    Replies: 1
    Last Post: 02-11-2002, 10:04 PM
  2. FAQ: How do i display current time and date ?
    By davie_scotland in forum FAQ Board
    Replies: 2
    Last Post: 01-24-2002, 11:18 AM
  3. time class
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-11-2001, 10:12 PM
  4. Real Time?
    By Sebastiani in forum C Programming
    Replies: 1
    Last Post: 09-23-2001, 03:33 PM
  5. relating date....
    By Prakash in forum C Programming
    Replies: 3
    Last Post: 09-19-2001, 09:08 AM