Questions tagged [drawing2d]

110 questions
0
votes
3 answers

paint() method would not draw on JPanel

I tried few source codes of drawing in java and they were working fine, but when i tried to make one of my own I could not get the paint(Grahpics g) method to work! I looked again at the codes I have and checked some of the tutorials in Oracle's…
bakz
  • 79
  • 15
0
votes
0 answers

Moving object with a matrix ( 2d, f#)

I'm wondering if it is possible to move an object (for example a sphere) with a matrix. I've created a type: Ball and I've added a method: let translateW (tx, ty) = m.Translate(tx, ty) where m is Drawing2d.Matrix() on the Paint method I wrote:…
Levenlol
  • 305
  • 5
  • 17
0
votes
1 answer

Convert Ellipse or EllipseGeometry to PathFigure on Windows Phone 8.1

I've stumbled upon converting Ellipse to PathGeometry. I've tried to use ArcSegment to present Ellipse, but still don't know how to convert Ellipse size to ArcSegment size. I'm trying to segment Ellipse into two part, but there are other approaches,…
Dmitry Dyachkov
  • 1,715
  • 2
  • 19
  • 46
0
votes
1 answer

Appkit / Quartz / CG Nesting NSTextView within a custom view correctly

Trying to teach myself how to do custom drawing in OS X. I am trying to nest a NSTextView within a NSView. I can't seem to figure out the step I am missing to get the NSTextView to behave as if it wasn't embedded in another custom view (I.e., text…
Hassan Syed
  • 20,075
  • 11
  • 87
  • 171
0
votes
1 answer

Unable to Draw in C++ on Raspberry Pi

I have, thanks to some help, managed to get the program below to compile and run but although it keeps on chugging away I cannot see anything drawn on the Pi's screen. I don't think that it is a problem unique to the use of openvg and ajstarks code…
user867358
  • 75
  • 11
0
votes
1 answer

Matrix Transformation to Reduce bitmap or Zoom In

Let's say I have a bitmap 500px and I'm drawing a line at run time on it. When the line max point is 250px, it normally stops right in the middle of the bitmap (since the width of the bitmap is double the size of the line). Is there a way to tell…
SF Developer
  • 5,244
  • 14
  • 60
  • 106
0
votes
1 answer

WPF C#. How to delay rendering string?

I need to delay rendering some string with some beautiful font I'll chose. Some way of rendering speed regulation through the code will also be very good feature. Can you suggest some idea and/or library(-ies) that helps? Thanks in advance. P. S. I…
Max
  • 105
  • 4
0
votes
1 answer

JavaScript/canvas - how to draw an image from source-image?

I have an image like http://s18.postimg.org/93lnr5sdl/img.png and need to draw it in let´s say five seconds into canvas. Is there any option how to do it? Line by line (I know the order in which the lines should be drawn). I know it won´t be st.…
user2834997
0
votes
0 answers

D3D9 Creating a Circle

I posted a different question earlier that gave me a bug using D3DPT_TRIANGLEFAN but I tried to recode my circle differently. Only problem is that it doesn't draw to the screen... I have tried debugging it but everything seems to be going perfect…
0
votes
0 answers

How to create a bezier line with a texture in Cocos2D

Im working in an app using cocos2D and want to know how to apply a texture to a line or a bezier line (ccDrawRect and ccDrawCubicBezier respectively). My draw code is so easy : ccDrawColor4F(_r, _g, _b,…
AlfuryDB
  • 289
  • 1
  • 4
0
votes
4 answers

How to paint onto QLabel in another thread

I've got a specific target: to draw a road-net. So i have a number of dots (x,y) and I'd like to connect them (using drawLine function). Because of their amount (about 2-3 millions) I need to do in in another thread, so there a problem how should i…
tema
  • 1,115
  • 14
  • 33
0
votes
1 answer

Android Save Drawing /

In the API Demos is a drawing example called FingerPaint. package com.example.android.apis.graphics; import android.content.Context; import android.graphics.*; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import…
BullShark
  • 85
  • 2
  • 4
  • 12
0
votes
2 answers

Flip text in Vb.net

I have a problem in flipping text in VB.NET It is flipped but with no line brake See the Link: http://www.spider-news.net/Flip_Text_question.JPG Imports System.Drawing.Drawing2D Imports System.Drawing Public Class Form1 Private Sub…
Nazim Iqbal
  • 21
  • 1
  • 4
0
votes
2 answers

Best way to draw lines java

I have never created a GUI or done anything with drawing in Java and am need of help drawing lines efficiently. In my app, the user will be provided with 8 buttons, and the idea is when a button is pressed, a line should be drawn on the window…
user1725940
  • 93
  • 4
  • 10
0
votes
0 answers

.net Flashing effect when drawing many shapes to panel (optimisation needed)

To achieve this type of interactive artwork, where you can drag the boxes and draw connection lines between them, I am using the code below. Basically, when the mouse is being dragged (to move a box) or a new selection is being made on the panel by…
Alex
  • 561
  • 2
  • 9
  • 28