I'm making a simple chat program for me and my friends as a tech demo. I had the idea to have a small drawing pad thing that would be shared between all connected users.
What could I use in this situation (control wise)?
I know I can convert an image to a byte[] and pass that to everyone, but I'd need to use a pictureBox to get said i...
Any help? Here's my code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Client
{
public partial class MainChat : Form
{
bool ShouldPaint = false;
public MainChat()
...
Hi all,
I'm trying to make a little iPad tool's for drawing simple geometrical objects (rect, rounded rect, ellipse, star, ...).
My goal is to make something very close to Keynote (drawing feature), i.e. let the user add a rect (for instance), resizing it and moving it. I want too the user can select many objects and move them together....
In a MFC SDI application containing a single CView, I pass the output device context pDC->m_hDC to a mapping library to render the map within the CMyView::OnDraw() method.
I would like the rendered image to appear in the centre of the cview surrounded by a black background, i.e. the image size would be smaller than the CView client rect...
hi,
I am creating a line in canvas tag using jquery drawing library. After the line drawn the
<div id="cool"><canvas id="canid"></canvas></div>
Then on click the below code executed.
$('#canid').remove();
What happens in IE after removing, dom with canvas end tag and also line is not removed.
Please help me out!.
...
Hello Stackoverflow.
I have written an application that has a number of custom views and generally draws a lot of lines and bitmaps. Since performance is somewhat critical for the application, I spent a good amount of time optimizing draw performance.
Now, activity monitor tells me that my application is usually using about 12% CPU and...
Hello,
I'm working with Android 2.1 and have the following problem:
Using the method View.getDrawingCache() always returns null. getDrawingCache() should return a Bitmap, which is the presentation of View's content.
Example code:
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setConten...
I want to draw a line with thickness in j2me. This can easily be achieved in desktop java by setting Pen width as thickness value. However in j2me, Pen class does not support width. My idea is to generate a polygon from the line I have, that resembles the line with thickness i want to draw. In picture, on the left is what I have, a line ...
I have x1,y1 and x2,y2 which forms a line segment. How can I get another line x3,y3 - x4,y4 which is parallel to the first line as in the picture. I can simply add n to x1 and x2 to get a parallel line but it is not what i wanted. I want the lines to be as parallel in the picture.
...
Hi, maybe I'm missing something.
I believed that WPF vector-based Drawings (like DrawingGroup, DrawingGeometry, etc.) were ready to be serialized. But they are not.
So, should I navigate all these drawing childrens, and store they points, lines, brushes (that also are not serializable) and so on, and then made my custom serialization?
...
I have data structured in Binary tree format, i want to represent it into an image(*. jpeg) then i need to display that image on web page and all the data will come @ runtime, so image processing should be done @ runtime, how to do this ?
This is what my thought solution any other suitable solution are also welcomed,
web site is in .NET ...
hey,
I am working on a game which would take touch gestures as inputs. Now, i would like to display the path/gesture as the user draws it. Can someone please tell me how to do this in cocos2d?
I tried to override the draw method and used ccDrawPoint(). But the point just keeps following the touch. I guess this is because the previous ...
So, I followed a tutorial for drawing stuff on android. I have created a Panel class that extends SurfaceView that I draw on using a thread. Now I want to put this Panel in a scroll view, specifically one that scrolls horizontally so that I can draw stuff wider than the screen. I would I go about doing that?
...
I need to be able to selectively invalidate multiple (about 20) rectangles on the screen for performance reasons, so tried the following:
Vector<Rect> myRects = new Vector<Rect>();
// ... add some Rects to myRects
for (Rect r : myRects) {
invalidate(r);
}
However this seems to invalidates a union of all the Rect's, forming one l...
I need to draw several simple objects (polygons composed by lines and arcs, eventually placed on different layers) inside a form (or any other container) and then handle events like:
right click on object
zoom
pan
Is there a library/framework that can handle my need or do I need to create my own?
EDIT FOR CLARIFICATION:
My polygon...
Hello,
I am making a WPF application that will let the user draw and resize shapes.
The resizing part is done using adorners, and the shapes are my own classes derived from Shape.
For example I have a Polyline, and for each of it's points I am adorning a Thumb with a handler on it's DragDelta event:
void Thumb_DragDelta(objec...
I need to create a simple app which can display geometries from Oracle Spatial in C#.
These geometries are exported from AutoCAD Map 3D 2010 to Oracle Spatial.
I need to pan, zoom, manage layers of these objects, events (like right click to popup a contextual menu, potentially different for every object), creating/deleting points (maybe...
Newbie question, so there's probably a simple answer to this problem.
I'm drawing some simple shapes using canvas.drawCircle(), canvas.drawLine() etc. I originally copied the code from:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/DrawPoints.html
Which extends a View and draws directly...
Hi all,
Does anyone have an idea what do the mind mapping applications use for drawing: Quartz 2D or Open GL? What would be the best way to implement this kind of application? Any advice is welcomed!
Thanks!
...
I'm getting ready to make a drawing application in Windows. I'm just wondering, do drawing programs have a memory bitmap which they lock, then set each pixel, then blit? I don't understand how Photoshop can move entire layers without lag or flicker without using hardware acceleration. Also in a program like Expression Design, I could hav...