29 Topics

Member Avatar for
Member Avatar for glez_b

I interpolated temperature data observed on an urban area formed by 12 locations. Now i would like to remove all interpolated values that are outside the shapefile layer. How can i do it? The shapefile links: https://www.dropbox.com/s/0u76k3yegvr09sx/LimiteAMG.shp?dl=0 https://www.dropbox.com/s/yxsmm3v2ey3ngsp/LimiteAMG.cpg?dl=0 https://www.dropbox.com/s/yx05n31dfkggbb6/LimiteAMG.dbf?dl=0 https://www.dropbox.com/s/a6nk0xczgjeen2d/LimiteAMG.prj?dl=0 https://www.dropbox.com/s/royw7s51n2f0a6x/LimiteAMG.qpj?dl=0 https://www.dropbox.com/s/7k44dcl1k5891qc/LimiteAMG.shx?dl=0 The Data is: Lat Lon T 0 20.8208 …

Member Avatar for rproffitt
0
1K
Member Avatar for Start4me

My goal is to make manipulations to an image by adding shapes on top of the image using JavaScript. For example, adding rectangular shapes to an image of a refregirator, as shown below: ![Sample_Of_What_Result_Needs_to_Look_Like.png](/attachments/small/3/9dd037e6ad4d9a1edf955eb0e39abf2a.png "align-left") <!DOCTYPE html> <html> <head> <style> #avaliableSpace { border-radius: 25px; background: #00B050; padding: 20px; width: 125px; …

Member Avatar for Taywin
0
867
Member Avatar for tanha

Hi, I have a png image wihtout background and want this png to be my JFrame where the transparent section must be transparent; I have tried different ways I used the setOpaque(), setOpacity(), ImageIO but no clue. I want only my transparent png as JFrame. Any idea and solution will …

Member Avatar for tanha
0
2K
Member Avatar for murali2489

Hi All, Im still finding it hard to understand Paint method, Almost all websites i had gone thru, they are showing examples of how to use it in an applet. I just cant understand on how to use it in a GUI application by extending Jframe object. Here is one …

Member Avatar for murali2489
0
1K
Member Avatar for trishtren

Hello, I was hoping someone can help me, im looking for a way to extend a basic shape class in particular the roundedrectangle2d class and be able to draw it in the same way we could handle an object with a simple call to g.draw(object instance); However im having problems …

Member Avatar for JamesCherrill
0
356
Member Avatar for Viped

Hi, I can't figure how to detect collision between Ellipse2D and Rectangle2D. I have tried intersects and contains methods with and without getBounds and getBounds2D methods but nothing works. Here is some code, ball and bat are overlapped. package net.viped; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.Toolkit; …

Member Avatar for Taywin
0
904
Member Avatar for alfredarthur

I want to add squares onto a jpanel one at a time after a delay . My program works fine until I tried to change the background color with setBackgound(). It didn't change. I worked out I have to call super.paintComponent(gr) in my paintComponent method. But when I do this …

Member Avatar for sciwizeh
0
1K
Member Avatar for ldpasaje

Hey guys, I have a rough code here that displays a Square asterisk, Oval shaped asterisk, Arrow asterisk and a Diamond asterisk, and it displays vertically, but I cant figure out how to display my output horizontally. here's my code so far, #include<iostream> #include<conio.h> using namespace std; int main() { …

Member Avatar for Labdabeta
0
2K
Member Avatar for coutnoob

Hi again and thanks in advance ! Last question ! I have to create a class called polygon (not normal) that has in private the number of sides and the length of each side and in public that has 2 constructors (the one has as variables the number and each …

Member Avatar for Kanoisa
1
4K
Member Avatar for sonicx2218

I made a creature composed of shapes in a Java Applet. I want to basically copy and paste the creature I made so I have say 7-8 copies on the same applet. but in different locations. Is there an easy way besides copying the entire code, and moving each coordinate …

Member Avatar for sonicx2218
0
276
Member Avatar for Yarra

[B]Ok so i have a program using JFrame when ever i add more than 2 classes in the frame one disappears? How can i add more than 1 class with one of them to dissappear?[/B] [B][I][U]Tester Class[/U][/I][/B] [CODE]public class TestYourFace { public static void main(String args[]) { JFrame frame = …

Member Avatar for mKorbel
0
174
Member Avatar for janfritz

hi. i'm trying to make a program that will connect two points that i click in my JPanel. i'm trying to connect the two points with a line. i displayed the values of my (x1, y1) and (x2,y2) coordinates whenever i click using the mouse and there is no error …

Member Avatar for hiddepolen
0
228
Member Avatar for shandoosheri

Hi i need that when i put something like a ball in front of my webcam a square is putten around that ball and keep following it if i moved the ball i currently have no idea on how i can do this so any help whould be appreciated thank …

Member Avatar for shandoosheri
0
556
Member Avatar for powerdink

Hello all, I'm trying to inherit a "CarPanel" I created using arrays to draw various shapes in order to make a car. Now I am trying to essentially create a subclass that inherits that class, but add a Timer Action to move the car across the screen. I got it …

Member Avatar for JamesCherrill
0
500
Member Avatar for maverick420

I'm trying to write a test class which shows the user the following menu and implements all options. The program should continue to run and process requests until the user chooses to exit. The program should double-check that the user really wants to exit. All input must be validated and …

Member Avatar for stultuske
0
244
Member Avatar for OblibSystems

Basically im trying to make a game where shapes fall from the sky and the user controls the sprite to avoid them. I have it working but only with 1 block falling at a time. I am using the paint method to draw my shapes. I was wondering how to …

Member Avatar for the_carpenter
0
223
Member Avatar for Basteon

So, I need to make a program that draws a [URL="http://en.wikipedia.org/wiki/Automata_theory"]finite automata[/URL] from the input data. I had some experience with the [I]graphics.h[/I] header but as far as I know it's a Borland only header and VC++ doesn't support it. So I was wondering, is there a way to draw …

Member Avatar for sathishraji
0
1K
Member Avatar for Capritarius21

What's wrong with the code, pls help: setCon adoJOReport adoJOReport.RecordSource = "Shape{Select SUM(Cost) as SC,SUM(Price) as SP,Brand From Temp_JOMaster Where JoNumber='" & txtJO.Text & "'Group by Brand} " _ & "Append ({Select * From Temp_JOMaster " _ & "Where JOnumber='" & txtJO.Text & "'} Relate Brand To Brand) As Command2" …

Member Avatar for Capritarius21
0
173
Member Avatar for FOOLY

For some reason, when I try to shape tween an animation in Flash, I'm unable to do it. The option in the Insert toolbar is unable to be clicked, while Classic and Motion tween are given and clickable. Do I have something set wrong that is causing Shape Tween to …

Member Avatar for iamthwee
0
178
Member Avatar for cufisa

Hello there everyone. I am in need of assistance in writing a code for my program. What I have to do is write a code to generate the following: (1) * ** *** **** ***** (2) ***** **** *** ** * (3) ***** **** *** ** * (4) * ** …

Member Avatar for aamira_s
0
157
Member Avatar for Mr Programmers

Hi Everyone! :) Hope someone can help me in this problem. :?: [B]Things I have:[/B] Button1 Picturebox1 (Name: Block) Timer1 (Interval: 100) Label1, which has the MouseEnter event. The MouseEnter event is MoveToStart(). Panel1, which includes Picturebox1, Label1. [I](The codes are at the bottom)[/I] [B]My Problem:[/B] When Form1 debugs (runs), …

0
155
Member Avatar for Amadman114

Hi, I want to move a shape (label) when I press WASD around a maze. I got what I have so far off the net, but I cant figure out whats wrong with it. [URL="http://www.programmersheaven.com/mb/VBasic/223364/223860/re-basic-key-press-question-answered/"]Original code[/URL] [CODE] Public x 1 'This is whats wrong - it says "End of statement …

Member Avatar for Amadman114
0
946
Member Avatar for Vertana

I've been racking my brain over this for a few days now. I'm attempting to write a program in Python 3.1 / PyQt 4.7.5 that will open a Powerpoint, go through every shape on every slide, determine if it is a picture and then save that picture to the specified …

Member Avatar for Vertana
0
1K
Member Avatar for getnit

Hi, My front end has a Tshape(Cirle) Over a Panel and I am trying to move the circle on the panel and get the X and Y values and send these values through comport for serial communication. However I am able to retrieve the values but the shape is flickering …

Member Avatar for getnit
0
931
Member Avatar for faisal.alawar

Write a program that prompts the user for an odd positive integer, n, greater than 1, and then prints the following hourglass figure which has a height of n text lines: In this example: n = 9 ********* (please refer to the attachment for the figure) * * * * …

Member Avatar for prvnkmr449
-1
206
Member Avatar for eligio

Hello! I need to extract a custom shape from a given image. That custom shape can be, for example, a triangle. For example, if source picture is 100px width and 100px heigth, I need to define a triangle with points: (x=0 y=0) , (x = 50, y = 50), (x …

Member Avatar for eligio
0
1K
Member Avatar for thehivetyrant

Hi there, i have this rectangle and i want to be able to rotate this shape around another when i press a key. i have been able to make it rotate where it is. There are two problems i am having difficulties with: - I can get the shape to …

Member Avatar for thehivetyrant
0
1K
Member Avatar for dewdropz

hi, i am new to c have to write a program to check the shape. I think the error is somewhere at shape= square. I know i can use printf statements but i want it in this format. Can someone help me please? [code] #include <stdio.h> int main (void) { …

Member Avatar for Ancient Dragon
0
203
Member Avatar for jhouns

compile using A86 assembler however you can adapt it for any other one easily... It just draws out a 3D like shape. It was annoying to get the angles right but suggestions on improvement to code is appreciated. :) Adequately commented so it is understandable not fully as it is …

Member Avatar for jhouns
0
2K

The End.