Questions tagged [drawing]
Issues around forms and graphics being drawn onto a computer screen, windowing system or device
5,826
questions
0
votes
0
answers
20
views
Paint bucket getting "Maximum Call Stack Size Exceeded" error
This is the code of the paint bucket tool in my drawing app using the p5.js library. The function self.floodFill always get "Maximum Call Stack Size Exceeded" because of recursion and I want ...
0
votes
0
answers
13
views
there is no error or output after running the example codes (nature of code)
I am trying the example codes (https://github.com/nature-of-code/noc-examples-python/tree/master/chp04_systems/NOC_4_08_ParticleSystemSmoke_b) in Jupyter. I kept the file organization as in the ...
0
votes
1
answer
30
views
How to draw circle and slanted lines using Tkinter
My teacher is teaching us how to draw pictures using Tkinter on Python, but I still need help. I'm new to digital technology, and I'm trying to draw a cone with a scoop of ice-cream. How do I draw a ...
1
vote
0
answers
13
views
Draw Lines, circles and points in the react native like animation
const array_data = [{x:12,y:13,duration:1,type:"point"},{x:14,y:16,duration:3,type:"point"},{x:20,y:20,duration:3,type:"point"},{x:55,y:55,duration:1,type:"point&...
0
votes
0
answers
21
views
Cover an image with black and reveal parts of the image using mouse
So I am creating a "Map Viewer" for a program I am working on. Basically I want to display a map and have it resize the image to fit in the grid. For this I am using Viewbox to hold the ...
3
votes
0
answers
42
views
Using raylib for a game project
I'm having a problem with drawing my game map in Raylib.
As far as I'm seeing the site's examples, everything is correct... However, when I run it, it doesn't show anything about the game, just the ...
0
votes
0
answers
4
views
.net MDI forms blended drawing issue
I have a weird drawing issue where 2 forms in .net MDI Windows application 4.8 are mixed each other where I click to each form to activate it. I have tried to call all Invalidate, Update or Refresh ...
-1
votes
0
answers
18
views
scale the image in the imageview issue
I load a image into imageview with Glide, and then I draw a line on it, after that I scale the image by Matrix. The result is that the line I drawed didn't scale with the background image. Does anyone ...
0
votes
0
answers
22
views
Drawing "ascii" (text) schematics with unicode characters
I'm trying to draw electronic schematics with text. I used to do this with ascii-only letters, but wanted to have something more fancy. Here is an example in ascii:
VDD -------------*---------*-----*...
1
vote
2
answers
50
views
Selenium python- Is it possible to draw a circle around clicked GUI elements?
I am new to selenium and I am wondering if I could draw a red circle around anything my selenium script clicks before taking a screenshot of the page (I already know how to do the screenshot). I think ...
1
vote
2
answers
65
views
how to draw a line knowing the starting coordinate, line length x angle and y, angle
I am trying to draw a line knowing the starting coordinate, line length x angle and y, angle. I am trying to visualize the eye gaze direction of a human in a video.
For an example, I want to draw the ...
1
vote
1
answer
21
views
UIKit Drawing without using Pencilkit
I am trying to create a notes app with multiple pages for drawing in UIKit. I have tried using PencilKit but it doesn't work for me due to its lack of customizability and not being able to access much ...
0
votes
0
answers
18
views
Exporting 2D+3D drawings from my drawing application
We are making a drawing application for kids and this application has 2 modes 2D and 3D, when on the whiteboard we draw 2D strokes and import a 2D image and then we toggle to 3D whiteboard and import ...
1
vote
1
answer
24
views
Javascript: does canvas get refreshed only when <script> ends?
I am writing very basic code hear (just started learning) using Javascript & canvas. I try to do some random drawing (rectangles have 50% chance to appear on certain spots). Once this happens I ...
0
votes
0
answers
42
views
Drawing shadow in swift
How can I draw this kinda shadow in swift?
Good Effect
I found that it seems impossible to achieve such an effect with the native shadow of CAShapeLayer
Then I tried to use NSGradient (which of ...
0
votes
0
answers
17
views
Using PencilKit to make a drawing app that syncs over iCloud
I'm trying to make a note app that uses PencilKit for drawing. The note app allows syncing over iCloud (with other users or two devices of the same user). Using NSPersistentCloudController, the app ...
0
votes
0
answers
37
views
How to draw precisely from any angles like this?
https://youtu.be/MGbvhyTZXfs curious how is this drawing done... it seems a rather new skill that nobody has ever done before... Is this some sort of improved application of art? How do you sort of, ...
0
votes
1
answer
15
views
Plot paths of equal distance
I have two sets of points, specified by their Cartesian coordinates. I need to connect each point from the first set with the corresponding point from the second set by a path drawn on a 2D surface.
...
0
votes
0
answers
23
views
Is there a way to change touch screen input location on Android devices for a stylus pen?
I have an Android tablet using Android 11.0 that I want to draw with. I purchased a stylus that is compatible with Android. The pen works on the tablet.
However, trying to draw with the tablet does ...
-1
votes
0
answers
34
views
Hand-free drawing in Swift without PencilKit, using CGPoint?
How Can I create drawing app without PencilKit framework?
I want to fill the pixel with color where I touch, I want to create drawing app using touchesBegan touchesMoved and touchesEnded methods
-1
votes
0
answers
16
views
WPF DataGrid Columns are not sizing correctly on RowDetails showing
I have a DataGrid with another DataGrid nested in the RowDetails of the first. The nested DataGrid is not sizing the columns correctly when the RowDetails are displayed BUT only when the data gets to ...
0
votes
0
answers
44
views
How do I draw a bevel effect?
I'm trying to understand how create the photoshop bevel effect using opencv
This is how the bevel effect looks like :
How the Photoshop Bevel effect works
There are a lot of options to tweak this ...
2
votes
1
answer
85
views
Jetpack compose Drawing over shapes
I have this interesting problem in a project, where user should be able to draw the same shape over the defined shape, i have achieved this so far, but i want to check if he/she drawn over the shape ...
0
votes
1
answer
40
views
what is wrong with my code why don't I see the white rectangle when i run the code. draw.rect() command
when I try to run the code the white square that is supposed to be there does not pop up.
I've tried to replace the variables with the numbers corresponding to them but it does not work either.
this ...
0
votes
1
answer
35
views
how to draw prespctive image in android canvas
i have searched about how to draw prespctive image in canvas like in the picture but i dont find anything thing. if its not possible using canvas, how i can make something like it?
i find this:-
...
0
votes
1
answer
43
views
As3 Actionscript drawing within the outlines
I am developing a coloring game using adobe air and as3. I have an image with black outline and the user can draw / color the image using a pen tool. I need help to figure out how can I restrict the ...
0
votes
0
answers
17
views
How to implement a smudge drawing tool in Flutter?
I implemented a smudge drawing tool in Java in the past. Now I need to convert it into Flutter. The smudge tool works by mixing the neighbor pixels in the direction of a brush stroke. It seems to be a ...
1
vote
0
answers
75
views
Flutter: Offset compensation after scaling canvas in a drawing app
So I'm working on a drawing app using Flutter. I want to implement pinch-zoom while still being able to paint on the canvas with one finger. I've figured out how to use an ...
0
votes
0
answers
11
views
Drawing on more than one Easel.JS canvas on a page
I am trying to create a drawing game that has multiple canvases on the same page. I tried many different ways but Easel was the easiest. I am open to other options if this is not possible with Easel.
...
0
votes
0
answers
29
views
how to save android.graphics.path in database and redraw them from database
I'm developing an android app with drawing functionality. I want to save those drawing Paths, so i can redraw them when I reopen the activity from history. I just want to save everything either its a ...
0
votes
0
answers
64
views
I want to map my organisation drawings template as default catia v5 template
I want to map my organisation drawings templates (standard template) as default catia v5 template.
For example,;;;
File >>new>>drawing>>
One pop up will come to choose drawing ...
0
votes
0
answers
87
views
CATIA VBA: Extract name of generated point in CATDrawing
I'm tearing my hair out trying to work with generatedpoints in draft view. I have a 3D model with points that are named in a particular way, per the picture below:
point names
Then on the CATDrawing, ...
-1
votes
1
answer
48
views
Draw a random circle one at a time using OpenCV
I am using Python and OpenCV to draw 10 random small green color circles.
How to make the 1st random circle appear first and be visible for 10 seconds? Then it disappears. Then draw the 2nd random ...
0
votes
1
answer
37
views
Js OpenLayers 'drawend': how to set ID without features removing itself after being drawn
We are fairly new with JavaScript and OpenLayers and are a bit struggling.
In the addInteraction() function, we let the users draw features (using polygons, circles and etc.). In our current webapp, ...
0
votes
0
answers
12
views
Problem with lines disappearing when overriding OnPaint event - TreeView
I have made my own tree view where I am drawing it myself but something weird happens whenever i scroll or select a node on the tree view
Normal view without selecting or scrolling
View when selecting ...
-1
votes
1
answer
41
views
html5 canvas resize a drawn line
I'm working on a HTML5 Canvas whiteboard.
I store all my elements on the stage in an array.
Now I added a drawing function. I can draw and select the drawn object.
Now I want to resize the object.
My ...
0
votes
1
answer
18
views
How can I detect my app’s windows size changing in Mac OS?
I’m an iOS/iPad app developer, and now that my app runs on Mac OS I’m seeing an issue where the user can freely change the size of the app’s frame, resulting in UI issues with my custom UIVew drawing ...
0
votes
0
answers
56
views
C# System.Drawing.DrawImage() draws bitmap in wrong place
I have a panel control and a bitmap with the same size. When I resize the panel I want the bitmap to be drawn on it. I use DrawImage(Image, Int32, Int32, Int32, Int32)
This is the panel (Canvas) Paint ...
1
vote
1
answer
35
views
Large array definition problem in emu8086
I want to draw the 200x200 sized picture that I have extracted the pixel coordinates to the screen using emu8086.I transfer the coordinates to the array and print to the screen, but I cannot print the ...
0
votes
1
answer
60
views
Can't draw with CreateGraphics
I just have a Panel and want to draw on it. Without the use of its Paint event. So i tried this and it doesn't work.
private void Form1_Load(object sender, EventArgs e)
{
Graphics g = panel1....
0
votes
0
answers
66
views
Turtle is drawing SVG image upside down
I've done a program that take an SVG image and redraws it with the turtle module.
The problem is that the image is redrawn perfectly but it's upside down.
from svgpathtools import svg2paths2, Path, ...
0
votes
0
answers
68
views
JavaScript OpenLayers: add attributes to a drawn feature (point, polygon, circle)
I want to create a webapp in which the user can draw features on a raster and add attributes to it. Sadly, I am a bit of a newbie.
Using OpenLayers and a GeoServer, I succesfully managed to display a ...
0
votes
1
answer
41
views
Turning graphics into bitmap in c#
So I've been struggling with this for a while. How can I turn a graphic that I drew into a bitmap and how can I keep it updated? I mean let's say I wanna draw some shapes and then go ahead and color ...
0
votes
1
answer
36
views
How can i draw a rectangle using Java and the JFrame class?
Im about to learn Java (after C++) now,and I am trying myself in Gui Programming.
My goal in this code was to draw something simple into a window created with the JFrame library.
This is my code:
...
1
vote
0
answers
32
views
Nothing is being drawn to canvas for my onclick star effect in Javascript for canvas
When the user clicks on the canvas the e.eventY and e.eventX are saved as clickX and clickY.
Passed as parameters to drawStarCracks(clickX, clickY).
Availangles is a portmanteau for available angles: ...
0
votes
0
answers
83
views
Trying to make a Python program that draw an image efficiently with Turtle
I've been trying to make a program that redraw an image (like from your computer) on turtle, I've done a program that draw pixel by pixel, but I'm searching to draw by shapes like a human being or a ...
0
votes
1
answer
43
views
Drawing simultaneously on two controls in two windows without delay
In my application, there are 2 windows and both contain a PictureBox. The first (pb1) allows interaction and the image can be changed through click- and mouseMove-events. These events call pb1....
0
votes
1
answer
133
views
Rotate a Multiple Lines in OpenCV/Python
I have many lines in my opencv, I want to rotate them but Opencv does not have shape rotation functionality. It has image rotation function.
I made a rectangle and drew the lines on it. then I rotated ...
0
votes
2
answers
91
views
Issues my method to get a 2D circle to move in a circle
OBS! Changed as part of the question has been answered.
My math has been fixed due to your help and input, the same with StackOverflowError but I still can get my head around how to make the circle ...
0
votes
0
answers
48
views
is it possible to draw on richtextbox (WPF, C#)
I programmed a text editor. The file can be saved in text or RTF format.
<RichTextBox Grid.Row="2"
x:Name="richtxtbox"
BorderBrush="#FFF1EDED&...