471,066 Members | 1,273 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

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

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
Apr 17 '07 #1
6 1522
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.

" active" <ac**********@a-znet.comwrote in message
news:OU**************@TK2MSFTNGP02.phx.gbl...
>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

Apr 17 '07 #2
How about creating an image with the properties of another image?
is the possible?

Thanks for the info

"Michael Phillips, Jr." <mp*********@nospam.jun0.c0mwrote in message
news:u7**************@TK2MSFTNGP05.phx.gbl...
>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.

" active" <ac**********@a-znet.comwrote in message
news:OU**************@TK2MSFTNGP02.phx.gbl...
>>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


Apr 17 '07 #3
How about creating an image with the properties of another image?
is the possible?
Use the Clone method.

" active" <ac**********@a-znet.comwrote in message
news:OE*************@TK2MSFTNGP05.phx.gbl...
How about creating an image with the properties of another image?
is the possible?

Thanks for the info

"Michael Phillips, Jr." <mp*********@nospam.jun0.c0mwrote in message
news:u7**************@TK2MSFTNGP05.phx.gbl...
>>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.

" active" <ac**********@a-znet.comwrote in message
news:OU**************@TK2MSFTNGP02.phx.gbl...
>>>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



Apr 17 '07 #4
I'm sorry I asked wrong

Identical except for the size

thanks

"Michael Phillips, Jr." <mp*********@nospam.jun0.c0mwrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
>How about creating an image with the properties of another image?
is the possible?

Use the Clone method.

" active" <ac**********@a-znet.comwrote in message
news:OE*************@TK2MSFTNGP05.phx.gbl...
>How about creating an image with the properties of another image?
is the possible?

Thanks for the info

"Michael Phillips, Jr." <mp*********@nospam.jun0.c0mwrote in message
news:u7**************@TK2MSFTNGP05.phx.gbl...
>>>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.

" active" <ac**********@a-znet.comwrote in message
news:OU**************@TK2MSFTNGP02.phx.gbl...
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



Apr 18 '07 #5
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.
" active" <ac**********@a-znet.comwrote in message
news:eD**************@TK2MSFTNGP06.phx.gbl...
I'm sorry I asked wrong

Identical except for the size

thanks

"Michael Phillips, Jr." <mp*********@nospam.jun0.c0mwrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
>>How about creating an image with the properties of another image?
is the possible?

Use the Clone method.

" active" <ac**********@a-znet.comwrote in message
news:OE*************@TK2MSFTNGP05.phx.gbl...
>>How about creating an image with the properties of another image?
is the possible?

Thanks for the info

"Michael Phillips, Jr." <mp*********@nospam.jun0.c0mwrote in message
news:u7**************@TK2MSFTNGP05.phx.gbl...
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.

" active" <ac**********@a-znet.comwrote in message
news:OU**************@TK2MSFTNGP02.phx.gbl...
>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
>




Apr 18 '07 #6
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
"Michael Phillips, Jr." <mp*********@nospam.jun0.c0mwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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.
" active" <ac**********@a-znet.comwrote in message
news:eD**************@TK2MSFTNGP06.phx.gbl...
>I'm sorry I asked wrong

Identical except for the size

thanks

"Michael Phillips, Jr." <mp*********@nospam.jun0.c0mwrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
>>>How about creating an image with the properties of another image?
is the possible?

Use the Clone method.

" active" <ac**********@a-znet.comwrote in message
news:OE*************@TK2MSFTNGP05.phx.gbl...
How about creating an image with the properties of another image?
is the possible?

Thanks for the info

"Michael Phillips, Jr." <mp*********@nospam.jun0.c0mwrote in message
news:u7**************@TK2MSFTNGP05.phx.gbl...
>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.
>
" active" <ac**********@a-znet.comwrote in message
news:OU**************@TK2MSFTNGP02.phx.gbl.. .
>>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
>>
>
>




Apr 18 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by ham-z | last post: by
5 posts views Thread by JackS | last post: by
17 posts views Thread by Galen Somerville | last post: by
3 posts views Thread by perspolis | last post: by
6 posts views Thread by Chris Dunaway | last post: by
7 posts views Thread by billsahiker | last post: by
11 posts views Thread by cty0000 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.