drawing

identify the surface of 3d cube

Hi guys I am developing an iPad application which just drawing a 3d cube. User can rotate it with finger motion and can zoom in/out with pinching it. Right now I am coloring whole cube (every surface) at same time. Now if I want user to color each surface of cube separately, means user will tap one surface and it will color that surfa...

WPF - Drawing image to canvas and erasing and redrawing repeatedly

I currently have a canvas with an image background in a WPF application. Above this canvas, I have a slider control. I need to, as users slide the value of the slider back and forth, draw a red line straight down across the canvas. I need to do this every time the slider value is changed such that the red line is always aligned with t...

openFrameworks (C++): Blur, Glow and other classic effects

Hi guys, I was doing some simple openframeworks (C++ based) tests drawing different shapes and I was wondering how to apply filters like blur, glow... I come from an AS3 background where this is a piece of cake. I know it won't be that easy but I'd like to find some kind of lead. I've read some people is using ofxShader but I can't fi...

Multi-user realtime drawing in iPhone

Hi everybody, Im going to create an applicaition for i-phone as a multi-user ineractive drawing. what i mean is some thing like YM functionality that 2 or mutiple user can draw at the same time together and. do you have any idea or clue for me to how to start? I have some methods in my mind , like making an webview and my drawing pad b...

Qt - draw in a QFrame on clicking a button.

Say there is a QPushButton named "Draw", a QLineEdit and a QFrame. On clicking the button I want to take a number from QLineEdit and draw a circle in a QFrame. How can I do this? Please provide me with the code. P.S. The problem is that draw methods of the QPainter should be called in drawEvent method. ...

PictureBox Drawing Coordinates Relative to Form

I have a PictureBox on a form. In Load event of the form I create graphics as follows: imageGraphics = Graphics.FromImage(PictureBox1.Image) Then, in PictureBox_MouseMove event I draw ellipse: imageGraphics.FillEllipse(New SolidBrush(brushColor), e.X, e.Y, brushWidth, brushWidth) No matter what I try, it always draws on incorrect ...

custom ondraw method not called !

<LinearLayout android:id="@+id/svLL" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ScrollView android:id="@+id/sv" android:layout_width="wrap_content" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android"&gt; ...

drawing on iphone

hello, I am trying to develop an iPhone application for children which will be able to draw characters on screen with touch and I want to know how to match the character drawn with good character of the alphabet. How will i compare the two shapes (drawing and existing) Any idea?? some code? ...

Possible draw on the iPhone/iPad web page using HTML5?

Is it possible to draw with your finger using the iPhone or iPad in HTML5? If the user were on a PC then the user would need to be using a mouse for the same effect. ...

WinForms ListView draws HELL SLOW in Windows 7 Compared to XP

I'm using ListView in VirtualMode and Details View with small icons. This ListView have like 100,000 items inside. The problem is that drawing this listview is much slower in Windows 7 compared to XP. You can fill the slow drawing while scrolling the ListView or while multi-selecting items. Additionally, i noticed that drawing become...

google maps API v3 - how to draw dynamic polygons/polylines?

Hi, I have 4 days of experience with Google Maps Javascript API and i find their documentation and information sharing confusing at best. Does anyone have experience or knowledge on how to draw polygons/polylines on a google map (using Javascript API V3) similar to this example? (which i found on this blogPost from 2008) So far as my ...

Easiest way to render this component?

I'm currently developing an android app that is going to render posts from an online forum. This is the layout I had in mind for rendering the posts: http://data.fuskbugg.se/skogsturken/component.png My question is what the easiest way is to accomplish the above layout? The hardest part is the text area that should be able to display...

ignore palm on iPad ideas?

Anyone have any ideas on how to ignore when the user puts their palm on the iPad when drawing? Apparently there's a program that does this called "Penultimate", but I'd like to put this functionality in my drawing portion of my program. Any ideas appreciated. Thanks! ...

How does one interact with a string drawn using UIStringDrawing/CoreText

I am attempting to work on an app that highlights certain key words. For this reason, I am looking at using either CoreText or UIStringDrawing to highlight these words (As in bold/underline/italicize/color) since UITextView doesn't seem to have these facilities (And I haven't had any luck with CATextLayer). In either case I am able to s...

spring like drawing in c#

How to draw the spring like shape using c# drawing class ...

Why isn't Quartz double buffering my drawInContext()?

I am rendering a simple line drawing (a line with some text in the middle) in a CALayer subclass via drawInContext(). I update this layer as the user is performing a gesture by calling setNeedsDisplay on it. The effect that I am seeing is what I might expect if there were no double buffering going on... i.e. I see parts of new renderin...

WPF text rendering inconsistencies.

WPF 4.0 notoriously fixed the blurry text issue. Setting TextOptions.TextFormattingMode="Display" uses pixel hints to line up characters, which works really well to improve clarity. However, it does not work while the program is running as a Windows service in session 0; the text goes back to "Ideal" rendering, which at small sizes is c...

safari navigation bar... How to reproduce it?

Hi all, I'm developing a new application that use a webView for internet searches... I'd like to reproduce the navigation bar as Safari's bar but I don't know how do. How can I create a navigation bar with label and two text fields programmatically? Does anyone know a tutorial, link or guide to do this? Thanks! ...

Clean up the surface on WaterMark of an Image

There is an image for the surface, and a text is written on the image for 184 rows of date.. Thus, it is expected to see 184 different text written image files are generated with all the same background images. (The code is declared below...) The problem is that the first text is written for all 184 different data.. I think I have to re...

Required Info to choose colormatrix for getting original Image

Hi, I have a requirement where i need to mask and clear the masked portion of the images. I am done with masking part of the requirement. I am using color matrix to mask my image also the selected portion in the image is blacked out. For this the color matrix setting used is , colormatrix obj = new colormatrix ( { 255,0,0,0,0} {0,255,...