62 questions
0
votes
1
answer
320
views
Convolution on c++
I'm trying to implement a convolution function in c++. When I use it, it either crashes my program, or it convolves but it shifts my pixels.
for (int y = 1; y < m_imageHeight - 1; y++)
{
for (...
1
vote
0
answers
156
views
Make light pass throught Smooth Portals in Unity
I am using Sebastian Lague portals in my game (text), everything works perfectly but there is an catch, I have a flashlight machanic in my project and when I get close to the portal with it it looks ...
0
votes
1
answer
50
views
Can we declared ,defined or initilization or take user input of an array elements in a GUI java?
Can we declare or initialize or take user input values of arrays in GUI Java only in one frame ??
If yes then how? and no then reason?
0
votes
0
answers
95
views
QpushButton QTableWidget but when i add Menu action to button menu don't display why?
This is the code i want to run .
i put QpushButton in QTableWidget by setCellWidget but when i add Menu action to the button the menu doesn't display why?
p = QtWidgets.QPushButton("Test")...
0
votes
0
answers
492
views
CSFML : Draw Line
i'm working on a school project using CSFML (The SFML library but in C), i'm trying to display a line between two points but impossible for me to find any good documentation to do it, if someone know ...
0
votes
0
answers
160
views
Duplicate weighted ties in social network using R
I am wondering if there is a way for any social network package (sna, network, or igraph) to accommodate duplicate ties with different weights?
I have data where division chiefs are rating their ...
0
votes
1
answer
383
views
WebGL2 - Write to texture/buffer at arbitrary position - OpenGL imageStore equivalent
I already know how to write to a texture using Framebuffers.
However, for a project I'm doing that requires FFT's, I need at a point to write, in the same shader, into more than one position of the ...
0
votes
1
answer
207
views
How to fill a shape with an ImageIcon in Java swing?
I am trying to fill a shape with an imageIcon and I keep getting an error saying that it should be converted to a paint. I am afraid I don't know how to do it. I have read quite a few examples from ...
0
votes
0
answers
30
views
Error in adding image inside a label defined inside a function Tkinter python gui [duplicate]
This is the code and expected output for a revive box that i created for a practice project
revboxppl frame contains three labels l1,l2,l3 and each label contains the same image
ill.png
<--image
...
0
votes
1
answer
576
views
DirectX - CreateDeviceAndSwapChain returns E_INVALIDARG
I'm trying to initialize Direct3D11 in C++. On machines that have Visual Studio installed(all of those are running on Windows 10), it runs fine.
On other computers (without Visual studio installed, ...
2
votes
1
answer
1k
views
Bresenham’s Circle Algorithm
https://www.geeksforgeeks.org/bresenhams-circle-drawing-algorithm/
I was looking at Bresenham's algorithm which I'm trying to use to make a MS paint style application. I've implemented it into python ...
2
votes
0
answers
386
views
Typescript runtime type inspection
I'm trying to build a graphical programming editor, similar to Max, Grasshopper, or Antimony using TypeScript.
The basic idea is that a block represents a function with inputs on the left and outputs ...
0
votes
1
answer
717
views
Rotate an image about its centre on a GPU
Assume an image I of dimension (2, 2). Graphical coordinates C are given as:
C = [[0, 0], [1, 0],
[0, 1], [1, 1]]
Objective: rotate I by 90 degrees about the centre (NOT the origin).
...
0
votes
1
answer
1k
views
How to create running text with jlabel?
Let's just say i have a jlabel with a text in it. And i want the text keep changing every second to the left just like running text on the billboard.
Is it possible? if yes, how?
-3
votes
1
answer
37
views
I am trying to set a value to an already string labeled radio button. I do not understand my mistake
public class RoomListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
double roomtype;
if (event.getSource() == room1)
roomtype = ...
2
votes
0
answers
117
views
how to use overridden methods defined in a class, in another class?
I am having some problems in an exercise that I'm doing for the graphical interfaces course. I'm writing a program in F# defined in this way:
I have a class A, in which I override the method OnPaint;
...
-4
votes
2
answers
292
views
ADA & GTK => function Get_Text
I want to create a Toplevel window and use this function in it .
There is no example anywhere...
Here the complete description in /usr/share/ada/adainclude/gtkada/gtk-gentry.ads
function Get_Text (...
0
votes
0
answers
550
views
Java Princeton import error
I am revisiting a project that I done at university a few years ago that involved using the Princeton StdDraw Class.
When I try to execute it now in eclipse it is giving me an error that "the import ...
0
votes
1
answer
1k
views
How to update Ruby GTK window label in real time and communicate with other threads
I am building a Ruby application which consists of the code responsible for the logic of the program and the one for GUI. Both parts of the code are split in classes and run in separate threads.
Ruby ...
0
votes
2
answers
7k
views
"m_db unload" command not returning any value in AbInitio
I am using m_db command to load the value from a table to a parameter in AbInitio graph.
But its not showing any value. I also run it in Unix but still its not showing any value.
The command is (...
0
votes
1
answer
35
views
Graphical anomalies when imports images and updating jLabels / jTextArea
I have an application that whenever I load in any image or update the JTextArea it always places the new object / text in the top left of the frame instead of simply updating whatever object it is ...
1
vote
2
answers
545
views
convert Graphical coordinates To Mathematical coordinates in c#
i want to convert graphical x,y coordinates x,y to mathematical coordinated
( in this picture you see the Differences between graphical x,y and mathematical x,y
the graphical x and graphical y ...
1
vote
0
answers
156
views
Problems with ISymbologyControl LoadDesktopStyleFile and installed ArcGIS Desktop 10
I am sorry for my bad english. I use C++ and Qt framework for programm development. I call method
ISymbologyControl LoadDesktopStyleFile and receive error code: "1075 800a0433 : ArcGIS Desktop is not ...
0
votes
1
answer
524
views
Define signal for "Simulate arbitrary signal" from database
I managed to make some arbitrary signals manually, but I want to define them in a database and at the define signal part from the Arbitrary signal properties I would like to take the values from a DB. ...
2
votes
1
answer
3k
views
implementing Level of Detail algorithm for OpenGL
I'm trying to implement the following algorithm (breaking to painting to small triangles) but I couldn't find any tutorial over the net that explains it properly,
Most of the things I've found explain ...