Click to See Complete Forum and Search --> : The bitmap??


Yoh-hei
March 29th, 1999, 02:57 AM
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

Daren Chandisingh
March 29th, 1999, 05:14 AM
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.

Yoh-hei
March 29th, 1999, 07:11 PM
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!