CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: cmos

Search: Search took 0.02 seconds.

  1. Replies
    13
    Views
    10,119

    Re: bytearray to bitmap, drawing in dialog

    I got it. Bitmap fits into my frame and looks great.
    had to made some changes.. but it works now.
    Thanks for your help.
  2. Replies
    13
    Views
    10,119

    Re: bytearray to bitmap, drawing in dialog

    Hello again..

    I tried this code again. And "it works"
    It returns a valid Handle. When I use

    BITMAP bmp;
    GetObject(hBmp,(sizeof(bmp),&bmp);

    i get information about width height and so on.
  3. Replies
    13
    Views
    10,119

    Re: bytearray to bitmap, drawing in dialog

    Thanks again. So far it works. Just flickers a little bit, but nothing worth to mention.

    Finally some question. I hope you can give me an answer

    1. is there a reason for drawing in OnPaint...
  4. Replies
    13
    Views
    10,119

    Re: bytearray to bitmap, drawing in dialog

    HEy, thanks again..
    My OnPAint now looks like



    if (IsIconic())
    {
    CPaintDC dc(this); // Gerätekontext zum Zeichnen

    SendMessage(WM_ICONERASEBKGND,...
  5. Replies
    13
    Views
    10,119

    Re: bytearray to bitmap, drawing in dialog

    Hi again,
    and thanks for your fast reply.
    I've changed it as you told me



    Update(.....)
    {
    if(m_pBuffer != NULL)
    {
  6. Replies
    13
    Views
    10,119

    Re: bytearray to bitmap, drawing in dialog

    Already tried this in OnPaint methode. doesnt work.

    I tried this here just a few minutes ago. and it works. but with some strange results.
    The Picuter is mirrored at the x axis and it is upside...
  7. Replies
    13
    Views
    10,119

    bytearray to bitmap, drawing in dialog

    Hello,
    i'Ve been looking for an answer the last days. But havnt found out something. MAybe you can help me.
    Im programming on a dialog. It shows me the live view from my webcam.
    Through a callback...
Results 1 to 7 of 7





Click Here to Expand Forum to Full Width

Featured