HighTechTalks DotNet Forums  

recommendation

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss recommendation in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jurica
 
Posts: n/a

Default recommendation - 09-22-2005 , 02:06 AM






Hi,

I'm a beginner in graphics programming. I have the following situation:
I have to show existing bitmap in the control on the form and then put one
or several transparent layers over it which will be used for drawing.
Which control to use to load the existing bitmap on o form? Will picture box
do?
Do I need another control for layer/layers?

Thanks,

Jurica

Reply With Quote
  #2  
Old   
Bob Powell [MVP]
 
Posts: n/a

Default Re: recommendation - 09-22-2005 , 06:54 AM






You will be better off building a complete custom form for this job. The
functionality of the picure box control is inconsequential and you can easly
create a control that uses say, an array of images for layers.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Jurica" <Jurica (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I'm a beginner in graphics programming. I have the following situation:
I have to show existing bitmap in the control on the form and then put one
or several transparent layers over it which will be used for drawing.
Which control to use to load the existing bitmap on o form? Will picture
box
do?
Do I need another control for layer/layers?

Thanks,

Jurica



Reply With Quote
  #3  
Old   
Jurica
 
Posts: n/a

Default Re: recommendation - 09-22-2005 , 07:47 AM



Thank you for the quick response. I'm experimenting a little and I've realized
that picture box is a bad choice. Can you please tell me if you know some
kind of the image editing control that already exists, or where to start in
building it (use array of panel controls e.g.)

Thanks,

Jurica


"Bob Powell [MVP]" wrote:

Quote:
You will be better off building a complete custom form for this job. The
functionality of the picure box control is inconsequential and you can easly
create a control that uses say, an array of images for layers.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Jurica" <Jurica (AT) discussions (DOT) microsoft.com> wrote in message
news:E1AE30E7-748A-4A60-9363-5DE58CCAFFED (AT) microsoft (DOT) com...
Hi,

I'm a beginner in graphics programming. I have the following situation:
I have to show existing bitmap in the control on the form and then put one
or several transparent layers over it which will be used for drawing.
Which control to use to load the existing bitmap on o form? Will picture
box
do?
Do I need another control for layer/layers?

Thanks,

Jurica




Reply With Quote
  #4  
Old   
Bob Powell [MVP]
 
Posts: n/a

Default Re: recommendation - 09-22-2005 , 10:47 AM



Stay away from arrays of controls. Create a Control based object that can
display either a collection of images or uses a collection of custom objects
containing say, an image and an alpha setting.

Writing your own custom control (NOT a usercontrol) will be fare easier in
this case.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Jurica" <Jurica (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thank you for the quick response. I'm experimenting a little and I've
realized
that picture box is a bad choice. Can you please tell me if you know some
kind of the image editing control that already exists, or where to start
in
building it (use array of panel controls e.g.)

Thanks,

Jurica


"Bob Powell [MVP]" wrote:

You will be better off building a complete custom form for this job. The
functionality of the picure box control is inconsequential and you can
easly
create a control that uses say, an array of images for layers.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Jurica" <Jurica (AT) discussions (DOT) microsoft.com> wrote in message
news:E1AE30E7-748A-4A60-9363-5DE58CCAFFED (AT) microsoft (DOT) com...
Hi,

I'm a beginner in graphics programming. I have the following situation:
I have to show existing bitmap in the control on the form and then put
one
or several transparent layers over it which will be used for drawing.
Which control to use to load the existing bitmap on o form? Will
picture
box
do?
Do I need another control for layer/layers?

Thanks,

Jurica






Reply With Quote
  #5  
Old   
Jurica
 
Posts: n/a

Default Re: recommendation - 09-23-2005 , 12:10 PM



Thanks, I'll try to do that.

Jurica


"Bob Powell [MVP]" wrote:

Quote:
Stay away from arrays of controls. Create a Control based object that can
display either a collection of images or uses a collection of custom objects
containing say, an image and an alpha setting.

Writing your own custom control (NOT a usercontrol) will be fare easier in
this case.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Jurica" <Jurica (AT) discussions (DOT) microsoft.com> wrote in message
news:880299D9-1749-498F-AD29-56AEC82ED9B4 (AT) microsoft (DOT) com...
Thank you for the quick response. I'm experimenting a little and I've
realized
that picture box is a bad choice. Can you please tell me if you know some
kind of the image editing control that already exists, or where to start
in
building it (use array of panel controls e.g.)

Thanks,

Jurica


"Bob Powell [MVP]" wrote:

You will be better off building a complete custom form for this job. The
functionality of the picure box control is inconsequential and you can
easly
create a control that uses say, an array of images for layers.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Jurica" <Jurica (AT) discussions (DOT) microsoft.com> wrote in message
news:E1AE30E7-748A-4A60-9363-5DE58CCAFFED (AT) microsoft (DOT) com...
Hi,

I'm a beginner in graphics programming. I have the following situation:
I have to show existing bitmap in the control on the form and then put
one
or several transparent layers over it which will be used for drawing.
Which control to use to load the existing bitmap on o form? Will
picture
box
do?
Do I need another control for layer/layers?

Thanks,

Jurica







Reply With Quote
  #6  
Old   
Jeff at Bennet-Tec.com
 
Posts: n/a

Default Re: recommendation - 09-23-2005 , 07:05 PM



Quote:
I have to show existing bitmap in the control on the form
and then put one or several transparent layers over it
which will be used for drawing

Can you please tell me if you know some
kind of the image editing control that already exists,
You may want to look at our MetaDraw control.
MetaDraw has a background layer and then allows
drawing on top of that ( drawing by end-user if you like,
or else drawing by code if that is better for you). While there are not
specific
layers on top - different graphics can be moved in front or behind other
graphics, and you can combine graphics into "groups" which you might think of
as
layers, and then move the groups in front or behind other groups. Also you
can
turn display of any graphics or groups on or off.
The result can be saved / reloaded, Printed, Zoomed, .....


* * Please include a copy of this message with your reply

Jeff Bennett
Jeff @ Bennet-Tec.Com

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com

=================== ===================



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.