473,394 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Drawing Board (White Board)

Hi,

I want to create drawing board application that can draw Line, rectagle,
circle and free hand drawing.

Each drawing need to be transparent, moveable (draggable), have bring to
front and send to back feature etc.

How can I do this .. where should I start?

Right now I have used a panel as the drawing board and each of the drawing
object (line, circle etc) as user controls overriding the OnPaintBackGround.
the user control draw on the board upon variuos mouse events as appropriate.
But I fail to acheive the transparency. What is the best way to do this?? I
mean if I drew a rectangle I draw rectagle (not a filled one) in the user
control and add it to the main drawing board but then it just make a white
rectangle hiding all the other drwing comes under the new rectangle.

Get me a direction if I am doing some thing wrong and If I am doing it
correct what I have missing??

Thanks,
Regards,
Nirosh.
Nov 16 '05 #1
2 12276
Hi there...

Sorry i'm not here to answer you question, but instead...I need to get some help from you!! =
Are you developing a WindowsForm or a WebForm?? I need to create this drawing board on a
ASP.NET form (using vb.net or c#). May I ask you what control you use to draw the circles, retangles and lines?
And are you just using a Panel as your drawing board??? I have no idea how I should start this project...Please Help!!

Thanks in advance!!!
Jasmin

----- Champika Nirosh wrote: ----

Hi

I want to create drawing board application that can draw Line, rectagle
circle and free hand drawing

Each drawing need to be transparent, moveable (draggable), have bring t
front and send to back feature etc

How can I do this .. where should I start

Right now I have used a panel as the drawing board and each of the drawin
object (line, circle etc) as user controls overriding the OnPaintBackGround
the user control draw on the board upon variuos mouse events as appropriate
But I fail to acheive the transparency. What is the best way to do this??
mean if I drew a rectangle I draw rectagle (not a filled one) in the use
control and add it to the main drawing board but then it just make a whit
rectangle hiding all the other drwing comes under the new rectangle

Get me a direction if I am doing some thing wrong and If I am doing i
correct what I have missing?

Thanks
Regards
Nirosh

Nov 16 '05 #2
Hi,

Sorry for the late reply

I am developing a User Control that display on a ASPX page. there I
developed a class object (typically called as c# applet) and add it to the
html manullly using the object tag.

I use c# and won't heart if you are using vb, I guess.

I have a one Object class that extends a UserControl and there I have
override the OnPaintBackGround to get the object transperency. and All the
lines Circle and Rect are extended objects of the Object class. For the main
drawing board (drawing area) I use a panel. There I am using a dynamic
bitmap image as well, that is as a background image of the main drawing
baord for avoiding periodic refreshing.. so since you have already started
this I think this note will help you to get some idea..

"jasmineC" <an*******@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
Hi there....

Sorry i'm not here to answer you question, but instead...I need to get some help from you!! =P Are you developing a WindowsForm or a WebForm?? I need to create this drawing board on an ASP.NET form (using vb.net or c#). May I ask you what control you use to draw the circles, retangles and lines?? And are you just using a Panel as your drawing board??? I have no idea how I should start this project...Please Help!!!
Thanks in advance!!!
Jasmine

----- Champika Nirosh wrote: -----

Hi,

I want to create drawing board application that can draw Line, rectagle, circle and free hand drawing.

Each drawing need to be transparent, moveable (draggable), have bring to front and send to back feature etc.

How can I do this .. where should I start?

Right now I have used a panel as the drawing board and each of the drawing object (line, circle etc) as user controls overriding the OnPaintBackGround. the user control draw on the board upon variuos mouse events as appropriate. But I fail to acheive the transparency. What is the best way to do this?? I mean if I drew a rectangle I draw rectagle (not a filled one) in the user control and add it to the main drawing board but then it just make a white rectangle hiding all the other drwing comes under the new rectangle.

Get me a direction if I am doing some thing wrong and If I am doing it correct what I have missing??

Thanks,
Regards,
Nirosh.

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: news.microsoft.com | last post by:
Hello group, My goal is to attach an image over another image. Top image should be transparent so the back image is visible through the top one. Bellow is a test code in VB.NET. You need to...
0
by: Tomi Holger Engdahl | last post by:
I am looking for a solution to add on-line drawing tool to a phpBB discussion board. The idea would be that the users can draw their own simple drawings with the tool and attach them easily as...
4
by: Daniel | last post by:
I need to build the maze board(like 2d array) using a tree. But I find that my buildTree function doesn't work. Could anyone give me some hints on debugging it? Thanks bool BuildTree(TreeNodePtr...
0
by: eruess | last post by:
Here's the scenario: I've got a whole bunch (for the sake of argument, let's say thousands) of different little 32x14 .png files that act as buttons all over a very large website. Each button...
13
by: Metallicraft | last post by:
I have a vb6 application. On the main form is a picture box with one or two images and several pieces of text displayed in it. These are created on the fly using gdi32 routines that are all in a...
2
by: Peter Proost | last post by:
Hi group, I got the following piece of code which draws a square with stars round it, now I want the stars to rotate round the square, I can do this with the mx.rotate and a timer and an...
10
by: sam_cit | last post by:
Hi Everyone, I'm working on developing a chess game and i decided to use c++ for its object oriented approach. I have a bass class unit and is inherited to distinct number of units (like king,...
11
by: Botang | last post by:
Create a chessboard program by using while statements and you can only use TWO cout statments.. (using C++) One cout is cout<< whiteRow << endl; THe other cout is cout <<blackRow << endl; ...
7
by: raylopez99 | last post by:
I have a logical drawing space much bigger than the viewport (the screen) and I'd like to center the viewport (the screen) to be at the center of the logical drawing space. After following the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.