CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: The bitmap??

  1. #1
    Join Date
    Apr 1999
    Posts
    79

    The bitmap??



    Hello:

    I have a important question.

    I use VC++6.0 MFC.I make a simple graphic use line,arc,and so on.

    I make the graphic read into memory.When I use StretchBlt() function

    Stretch the graphic.THere are big truble happen.The line's width are

    wide when graphic stretching.I didn't like there.But I must use StretchBlt()

    funtion.How will I do?

    Would you help me? Give me any advice?

    Thank you very much!

    Yoh-hei

  2. #2
    Join Date
    Apr 1999
    Posts
    32

    Re: The bitmap??



    I think that what you need to investigate are vector drawings rather than bitmaps. It seems that you want to draw a picture and have it scale to any size area. You could try holding all of the co-ordinates in some array and then re-draw the image any time the area is resized, or you might try using a "metafile". I am not familiar with metafile use, but it seems that that is what you need.

  3. #3
    Join Date
    Apr 1999
    Posts
    79

    Re: The bitmap??



    Hello:

    Thanks you help.

    I can't use vector drawing beacuse if there are many many

    vertor ,redraw is very slow. But bitmap is very quick if graphic

    change on screen.I known newpen.CreatePen( ,1, ) function.then

    draw line the width is 1.But I don't know if Bitmap can do like?

    Thank you again!



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured