Search:

Type: Posts; User: Kristian25

Search: Search took 0.01 seconds.

  1. How to make 2 threads that both will update one window?

    I am making a program that creates a very large picture on the screen. The picture scrolls all by itself like a movie.

    The problem is that the code that generates this is in a loop in OnDraw, and...
  2. How to store pixels in memory created with Setpixel(...)

    Hello.

    I have now made myself a sample program from a book that uses document/view, and I seen now how scrolling the window works.

    My problem is the following. I am creating a picture from a...
  3. how to create a greyscale bitmap using setpixel(32-bit_value)

    Hello. I am generating a bitmap picture from a binary file. I am using SetPixel(unsigned long RGB_colour) to display the binary data on the screen.

    The problem is that the values are 16 bit (that...
  4. Replies
    4
    Views
    2,653

    I tryed doing that. But do you have to...

    I tryed doing that.

    But do you have to manually link it to the childview in some way?

    Kristian
  5. Replies
    4
    Views
    2,653

    But can you use this when you are not using...

    But can you use this when you are not using document/view? But a simple project with only childview and mainframe classes.

    and so, how??

    Kristian
  6. Replies
    4
    Views
    2,653

    How to make scroll bar for MFC?

    Hello.

    I have created a MFC project that creates a bitmap picture from a binary data file.

    The problem is that the picture that is being created is to big for the screen, so I want to put in...
  7. Replies
    1
    Views
    1,265

    Help creating a Bitmap

    I need help to create a Bitmap picture.

    The situation is like this:

    I am loading in an array with 16 bit values. Each of these values represent the color of one pixel. Each array represents one...
  8. Replies
    1
    Views
    9,001

    Convert unsigned Char to Short

    Hello.

    I have managed to read a binary file, and have put the data in a "unsigned char" array.

    The problem is that "unsigned char" is 1 byte large, but I need the data to be stored in a 2 byte...
  9. Replies
    3
    Views
    2,116

    sounds reasonable, but...

    Yes, that sounds like a good idea. But, when I read these 16 bits, what functions do I use to convert them into pixels, and which functions do I use to display them on the screen?

    I've heard some...
  10. Replies
    3
    Views
    2,116

    creating image from pixels stored in file

    Hello.

    I am making a viewer that reads pixels from a file and displays it on the screen.

    The problem is that I know very little about the image.

    - I know that the file is Binary.
    - I know...
  11. Replies
    2
    Views
    2,032

    Thanks

    okay, I'll try this and see what I get.

    Thanks :-)

    Kristian
  12. Replies
    2
    Views
    2,032

    Creating pixel graphics in MFC

    I am working on a project that takes a file with a lot of x,y coordinates and a number, for how bright/dark a pixel should be, and shows all of these on the screen.

    The result should be a sonar...
Results 1 to 12 of 12