Make a new graphics object have all the properties of the old graphics object

A

active

I have an image and a graphics object created (FromImage) from that image.

I need to create a new image and create a new graphics object from the new
image.

I want the new graphics object have all the properties of the old graphics
object (like PageUnit and InterpolationMode...)

Can I do that without setting them all one at a time?



Thanks
 
M

Michael Phillips, Jr.

I want the new graphics object have all the properties of the old graphics
object (like PageUnit and InterpolationMode...)

Can I do that without setting them all one at a time?

No. You can create a bitmap object using the graphics context of an
existing device. But it will only inherit the characteristics of that
device such as its resolution.
 
A

active

How about creating an image with the properties of another image?
is the possible?

Thanks for the info
 
M

Michael Phillips, Jr.

No. The memory allocated internally for a bitmap is predicated on its
width, height and PixelFormat. A slight change in just one property creates
a different bitmap.
 
A

active

Thanks for your help.

The basic problem is:
I have an image that is basically the canvas that the user draws on.
He may also be making changes to the Graphics object that is used to draw on
the canvas.
Then he wants to make the canvas bigger and continue drawing.
I know how to create the bigger Image and draw the old picture on it and
create a new Graphics object from the new Image.
However, I don't know how to make the new Image and Graphic object reflect
changes in properties he may have made to the original items.

Guess I'll just copy the some of them

Thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top