Let's say...

This is a discussion on Let's say... within the Windows Programming forums, part of the Platform Specific Boards category; Let's say I have a client which has requested and recieved a chunk of data, a bitmap. Now instead of ...

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708

    Let's say...

    Let's say I have a client which has requested and recieved a chunk of data, a bitmap. Now instead of first sending the bytes to a file, then reloading them with LoadImage(), how would I convert the bytes directly into a bitmap? (Well OK a handle to a bitmap: [HBITMAP])?
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    273
    SetDibits()
    always looking, make an offer. get me out of this place.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21