Questions tagged [pen]

118 questions
2
votes
1 answer

Why does my Racket pen draw extra pixels where two lines join despite using 'butt and 'miter?

I'm making two squares as seen in the following image.One red and one blue square The yellow circle is not part of the image, but it shows some pixels that I'm expecting to not be there. I have no experience with computer graphics, but from what…
2
votes
1 answer

how to create a pen that is the same color as that of a solid brush?

I would like to get the color (colorref) of a SolidBrush to create a pen of the same color, using only Windows API functions (no dot net and stuff like that) using C/C++/Asm/Delphi, etc. If it helps, this is what I'm trying to accomplish: I've drawn…
ScienceAmateur
  • 521
  • 4
  • 11
2
votes
2 answers

How to inject pen inputs from a digitiser using InjectTouchInput() with PT_PEN on Windows 10

I am using the InjectTouchInput() API on Windows 10 to inject touch events from a separate digitiser. That works well (multi-touch etc.). There are quite a few examples out there of using the API for that, i.e. using a pointer type of PT_TOUCH,…
PHYL
  • 101
  • 2
  • 10
2
votes
2 answers

Pen input in Windows using C++

How can I access pen input with pressure on Windows? I am making a paint program, and had been using wintab, but wintab does not exist on my new computer. Wintab seems to be deprecated, but there are apparently some newer APIs called Windows Ink and…
Joe
  • 2,008
  • 1
  • 17
  • 25
2
votes
0 answers

Drag and drop by pen

I have a program written in Delphi XE7 using the VCL. An important part of the program is to transfer elements of one ListBox into another by "drag and drop" method. When performing the same operation on a Windows Tablet by means of a pen, the…
2
votes
3 answers

C# Pen.DashPattern

I want to draw a Line between 2 rows while using drag and drop. The function of this is simply visual, so that the user knows, where he is dropping the row. The line should look like the excel onces. Here my code: Pen _marqueePen = new…
nixn
  • 1,337
  • 3
  • 16
  • 33
2
votes
2 answers

Draw line with varying thickness

I want to draw one continuous line/curve with varying thickness using C#. If I set the width of the Pen as fixed, thickness will not vary. How is it possible to change the thickness of line as it is drawn? Any help is appreciated.
AUser123
  • 651
  • 1
  • 7
  • 21
2
votes
1 answer

squeak how to use pen goto: and place:

I am making a program in squeak smalltalk and while making it I realized that I didn't know how to use these pieces of code using an array for the x, y values: pen:= Pen new. "to create the pen object first" pen place: 200@200 pen…
2
votes
2 answers

Multiple Pen objects C#

I have a form in which i draw some lines using the Pen object. I'm wondering if i should use one shared object Pen, or one object Pen per line drawn. Is is better to use: (one object shared by all lines) Pen green; green = new…
guanabara
  • 590
  • 1
  • 9
  • 22
2
votes
1 answer

c# - Smoother drawing pen

I have a paint program made in C#/GDI+ in which I draw different shapes with interchangeable colors and pen sizes on a panel. I have got the shape-drawing methods working OK, but when it comes to using a free pen (as you would in MS Paint) I have…
1
vote
1 answer

Titanium pen writing

Is there a way to allow people to handwrite on the tablet with a pen, and saving the writing somewhere (as image... or if I'm lucky, as a characters recognition and save the text) All this in appcelerator titanium Thx
Etienne
  • 177
  • 4
  • 17
1
vote
1 answer

GDI+ DashStyle throws OutOfMemoryException in .NET

I'm using DashStyle.Dash while rendering my hierarchy of objects. My application uses Graphics.Transform extensively and I find that at some scale values (including a scale of 100%) and some angles of rotation, Graphics.DrawLine throws…
Agnel Kurian
  • 57,975
  • 43
  • 146
  • 217
1
vote
0 answers

A Star Search Pen Plotter moving from two unconnected nodes

I'm having trouble with a programming assignment, its a penplotter, there have been quite a few questions about it already here. Here's a summary: The paper sheet is understood to be laid out on a grid with both the x-axis and y-axis running from 0…
Cottonbuds
  • 19
  • 3
1
vote
1 answer

Input should only possible through Apple Pencil in HTML Canvas JavaScript

I'm trying to make painting on my JavaScript Canvas possible only through the Apple Pencil. Because currently drawing is done by resting the hand in several places, because nciht distinguishes between hand and finger. I found the following approach…
runnybams
  • 23
  • 2
1
vote
1 answer

OWASP ZAP, how to authenticate using Form-based Auth Login context and POST request

I am currently trying to scan our web application with OWASP ZAP but I am facing an Issue which I can not seem to solve. The problem is, that in order to scan the application I need to sign in, I followed multiple online tutorials and also…