Thread: Let's say...

  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