Questions tagged [pen]

118 questions
0
votes
1 answer

Remap Galaxy Book Pen Button to Right Click with AHK

I am trying to remap the button on the Samsung Galaxy Book Pen using AutoHotKey but I can't work out the button code. So far I have remapped the ctrl key and the "left click" to be right click, but I just want to be able to press the button or even…
drume
  • 33
  • 10
0
votes
1 answer

Win32 pen simulation not working with InjectTouchInput()

Im using win32 touchinjection on windows 10 desktop. I have been trying for two days to get pen simulation. The code below works with PointerInputType.Touch but i need pressure and orientation, which don't seem to work. GetLastError() returns 87…
jacobian
  • 141
  • 9
0
votes
1 answer

Chrome canvas touchstart with pen is not working properly

I'm trying to create a canvas object which can be used like a mspaint to draw things. I want to be able to use the mouse, as well as the pen (in my case surface pen on a surface4). Drawing with the mouse is ok with all 4 browsers. The problem is for…
ylerjen
  • 4,109
  • 2
  • 25
  • 43
0
votes
1 answer

Magnetize pen on custom grid

Hello, I'm doing an illustration in pixel art mode. I would like to be able to magnetize my pen tool on a custom grid. I made a grid that cuts my image in 10px increments. But I can't make my 10px pen follow the grid. Here's what I got: Here's…
OOM
  • 728
  • 7
  • 22
0
votes
1 answer

How can I use the Pen tool to draw a simple black line on a PictureBox's Image object?

I'm trying to draw a line that goes from middle top to bottom. I know I have to use the Pen class to accomplish this. private void RepaintPreview() { Pen blackPen = new Pen(Brushes.Black); blackPen.Width = 1.0f; blackPen.LineJoin =…
delete
0
votes
0 answers

How can I get the pen's position on the screen on a tablet PC in C++?

From what I've researched it seems I can get the mouse position using GetCursorPos(); and differentiate if the input is from the mouse using GetMessageExtraInfo();. The problem is that I wish to be able to move the cursor regardless of the pen's…
Jose Cancel
  • 151
  • 1
  • 2
  • 15
0
votes
1 answer

C# UWP app error: "'InkStroke' does not contain a definition for 'StrokeStartedTime'"

I am making a UWP app in C# in Visual Studios 2015, that supports Windows v10.0.10240. However, when I try to access the StrokeStartedTime of the InkStroke class, I get the error listed in the title.
albertwujj
  • 3
  • 1
  • 2
0
votes
1 answer

Blend 2017 Pen tool location

I can't locate the Pen tool in Blend 2017. On Microsoft page the Pen tool shows above the rectangle. But I seen above the rectangle Pencil tool, then Gradient tool, but not Pen tool!
LetzerWille
  • 5,355
  • 4
  • 23
  • 26
0
votes
0 answers

No built-in property editor for the WPF Pen type in Visual Studio?

While writing a custom WPF control, I have been surprised that WPF does not provide a built-in visual editor for properties of the System.Windows.Media.Pen type. I expected to see something similar to the editor for Brush-based properties: After…
TecMan
  • 2,743
  • 2
  • 30
  • 64
0
votes
2 answers

Changing the colour of a pen in Java via terminal

I'm currently trying to build a drawing tool in Java, controlling a pen using command prompts in the terminal. So far I've been able to implement commands to tell the pen to move, turn, etc. Now, I'm trying to get my program to respond to the…
Garwaire
  • 5
  • 3
0
votes
1 answer

NGraphics: Is there a way to have round cap on strokes

Hello I am using NGraphics to draw strokes for xamarin form. In Android, I can draw the stroke with round cap enabled so the stroke of the endpoints are round. In NGraphics I still can draw the stroke but the endpoints have corners.
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
1 answer

How do I change the color of already drawn InkStrokes in windows universal

I have drawn some ink strokes on an InkCanvas and am now wanting to change the pen colour. I can change the colour of any additional strokes I draw using CopyDefaultDrawingAttributes and UpdateDefaultDrawingAttributes and that works fine. But how do…
Robert
  • 231
  • 3
  • 10
0
votes
2 answers

C# How to store Brush/Pen information in a database table

I need to store Brush/Pen information about several shapes in a database table, one row for each layer I draw. I was thinking of two schemes: BRUSH_INFO PEN_INFO SolidBrush(Color.Red) Pen(Color.Black) pros: only two…
Keeper
  • 3,516
  • 1
  • 18
  • 29
0
votes
0 answers

How to set color of a pen from a string in C#?

I thought this would be covered somewhere, but I can't find it. In WPF how do you set the color of a System.Drawing.Pen from a string (like "Red")? Again, this isn't a brush, this is a pen.
zetar
  • 1,225
  • 2
  • 20
  • 45
0
votes
0 answers

GetPointerPenInfo function to get pen pressure - how?

I am trying to use the GetPointerPenInfo() function to read pen pressure from the stylus (testing with Wacom Intuos). However, the returned pressure value in the POINTER_PEN_INFO structure is always 0. Do I need to use any other functions along with…
Jarek
  • 29
  • 4