paint

[Java] What toolkit to use to make more then one thread in painting? Swing, GWT, FX, Qt or what?

I want to write a multipaint application - a program that enables users from different computers to draw simultaneously on one image. What toolkit should I use? I've already discovered that Jambi is not appropriate in this case, because: Any number of threads can paint at any given time, however only one thread at a time can paint on a...

AWTUtilities.setWindowOpaque is causing some text painting issues

I am attempting to create an opaque JWindow with antialiased rounded corners. In doing so, I call the method: AWTUtilities.setWindowOpaque(this, false); And use a custom JPanel which paints the actual rounded corners. Within the window, I have a JList. Whenever setWindowOpaque is set to false, the text within the JList becomes "disto...

Problem painting JLabel class to another JPanel class

I have created a class that extends JLabel to use as my object moving around a JPanel for a game. import javax.swing.*; public class Head extends JLabel { int xpos; int ypos; int xvel; int yvel; ImageIcon chickie = new ImageIcon( "C:\\Users\\jjpotter.MSDOM1\\Pictures\\clavalle.jpg"); JLabel myLabel = new JLabel(chickie...

Straight Line Equation between two points

Hi, I need to paint the line which links two points. I am doing it, in Java. I receive two points as parameters and I have to calculate if the straight line between them, is inside the black figure. I developed my own solution using the straight line equation, but my results are different than using the "professional" programs (such a...

Simulating brush strokes for painting application

I'm trying to write an application that can be used to create pictures that look like paintings using simulated brush strokes. Are there any good sources for simple ways of simulating brush strokes? For example, given a list of mouse positions that the user has dragged the mouse through, a brush width and a brush texture, how do I determ...

Screen overlay with Python, paint over an active window with background python script

Hi I'm writing a python script that runs in the background and takes screenshots of another application that is active. Then it analyses the screenshots and now it should overlay a certain image over the active app or the screen. I still need to be able to make mouse and keyboard inputs in the active app. So I need a way to overlay/pai...

Dynamic area painting.

I have such drawing (It can be in a vector format): It is necessary for me to place it on a site and dynamically to paint it. The user chooses colour (of walls and roof)and both the wall and a roof on a picture change the colour (according to a choice of the user). The set of colours is not limited. What technology to use for the ...

making paint in pyqt or qt

hello i have just received a task to implement a software that paints over pictures (pretty much like microsoft paint ) i have no idea where to start or how to do that. do anyone have a good reference or idea for painting in qt or pyqt ? this will be highly appreciated thanks in advance ...

C#, WPF, Visual Studio 4: irregular shape color filling

I am creating a Paint application with C#, WPF, and Visual Studio 4. Just like MS Paint, the user can draw lines and shapes. How do I fill a user drawn irregular shape with color? Is there a library for doing something like this? Detecting a closed loop that is created by lines seem like an impractical approach. I can imagine all ...

How to prevent DrawReversibleFrame from drawing outside?

How do I prevent DrawReversibleFrame from drawing outside of the SplitContainer and form as shown below? As you can see, the selection frame is being drawn around a control within the container, which is bigger than the visible part of the container itself. ...

VB.NET ComboBox - Need to force a redraw when a key is pressed when it is dropped down.

I am using a DrawItem and MeasureItem events to paint a combobox with a DrawMode of OwnerDrawVariable. Basically, I'm trying to have the user highlight a selection with the mouse, and then press the space bar to toggle the Save status of a song list. Then I call the Me.Refresh() event for the form in an attempt to redraw the form and t...

Writing a paint program à la MS Paint - how to interpolate between mouse move events?

I want to write a paint program in the style of MS Paint. For painting things on screen when the user moves the mouse, I have to wait for mouse move events and draw on the screen whenever I receive one. Apparently, mose move events are not sent very often, so I have to interpolate the mouse movement by drawing a line between the current...

windows mobile painting on capture camera mode.

I have a windows mobile 6.1 prof application. I want to make a fake augmented reality application. So while in the capture camera mode. I want to also be able to paint something over the camera view. is that possible? Also if you know some dll's or API's about augmented reality (free or not) please welcome. ...

Creating a javax.microedition.lcdui.Image on J2Se Application

Hey, I have designed a component for J2Me, and here is the paint method: import javax.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; class Component { ... public void paint(Graphics g) { if (background != null) g.drawImage(image, bounds.getLocation().x, bounds.getLocation().y, 0); } ... } I want to...

VC# - Draw / Paint Outside Form...

Can we paint images and draw text... outside a form.. i mean literally outside... i know its stupid question to ask but CAN we... ...

GDI+ winforms C#

I wanna make a paintbrush application in winforms using c# and mouse events. Can somebody help in coding it. ...

Applet isn't painting unless I resize

Hmm, its obviously a paint issue. I've tried painting my panel which contains my applet, and painting my applet. None of them have worked. Can anyone offer advice? ...

Example code for a minimal paint program (MS Paint style)

I want to write a paint program in the style of MS Paint. On a most basic level, I have to draw a dot on the screen whenever the user drags the mouse. def onMouseMove(): if mouse.button.down: draw circle at (mouse.position.x, mouse.position.y) Unfortunately, I'm having trouble with my GUI framework (see previous question)...

Save createGraphics in a file as image

Hi, How can I transfer the values of my graphics to a bitmap so I can save it as jpg or bmp file. here's my code: private void pictureBox1_Paint_1(object sender, PaintEventArgs e) { using(var p = new Pen(Color.Blue, 4)){ for (int i = 0; i < _listPS.Count; i++) { e.Graphics.DrawLine(_pen, _l...

Winforms Minimization Techniques

I am trying to make my application "flip" when the minimize button is pushed. By flipped, it should be kinda like a coin when flipped. It "flips" down into the taskbar. I am wondering how effects like this are accomplished in WinForms using C#. Can this be done or does something like this need to be done using DirectX? ...