Title really says it all. I'm working on an image processing project, and am currently stuck on the crop function. It's fully functional, the user can select an area of the image, and crop that area. Only trouble is, the user won't actually know he's selected the image, because there is no rectangle spanning the selected area. I have no idea how to do this, and the Google is weak today.
Available info: x-coordinate, y-coordinate, length,...
User Profile
Collapse
-
How can I draw a rectangle on top of a PlanarImage?
-
You guys didn't read the "Read this first" link, did you? Unglue your dot key, and we'll feel a lot more inclined to help out.
Either way, netbeans comes with subversion installed. Subversion is a pretty standard versioning control tool. It will allow you to share a project, but you'll need to host it on a repository. Luckily there are many good and free alternatives. Google is your friend. -
Can I concatenate a char[] and int?
I'm making a program that is supposed to change certain input and leave most unchanged, and then spit out an output. I decided I should store the output in a single char[] before writing it out, so I could build on the program later, however doing this I ran into an issue. Anyway, the main.c is attached as a txt.
Changing all the stuff seems to work fine, it's just that adding the normal characters isn't working. I get warnings, and... -
Yup, thanks a bunch! Now I just have to figure out how to do the stringcompariso n in java... Why can't java just work like the other languages? I've barely used it for a week, and I've found so many unnecessary quirks already it's driving me bonkers!Leave a comment:
-
Yeah, new language for me, so there's going to be quirks to work on...
The finally isn't supposed to do anything, but it gave me an error if it wasn't there, so... And maybe it was in Ruby or Pyhon or something where you had to fill it with something, so continue was necessary...
This particular code isn't supposed to solve anything, it's just for learning how stuff works... As for the incomparable thing, that was what...Leave a comment:
-
-
InputMismatchException not found?
Why on earth does the catch statement return an error? It's pretty much cut and paste from a java schoolbook! What the program does isn't all that important, without the try/catch, the code compiles fine... But as soon as the catch is introduced, I get an error saying "cannot find symbol," on line 23, the catch line.
[CODE=java]
import java.util.Scann er;
public class O2a{
public static... -
home variable?
The internet is terrible for searching for these kinds of things... How do I get the home variable in python again? Like, if the program is run on an unix system, it'll return /home/user, and on windows it'll return c:\Documents and Settings\User or something like that? -
Exception for incomparable types?
Okay, new programming language for Burnie. Can anyone tell me how to write a try catch statement for incomparable types? I can't figure out how to get emacs to give me the actual error, and not the very useful description... Basically I want this:
[CODE=java]
public class ThisProgram
{
public static void main (String[] args)
{
String[] list1={"a","b"} ;
... -
Why can't I edit and delete my own thread? It was utterly silly. It didn't set up my session variables because I hadn't capitalized the P in Page_Load/Unload. The FAQ says I am to click the edit button, but it is mysteriously gone. Is this really necessary for the creator of the thread?Leave a comment:
-
Making array if array not present?
I've been given the task to make a hangman like program, and it seemed simple to me, but I just can't make the code behave like I want it to. I need the code to check if the array "placement" is a session variable, and if not it needs to set up an array of equal length to the array "arr".
Code:// Default.aspx.cs created with MonoDevelop // User: Lynx at 14:08*02/16/2009 // // To change standard
-
Oh I see, that's really clever! I've never learned about that type of functions, but I understant how it works. Thanks a lot for the fast response.Leave a comment:
-
Can I save an operator in a variable?
I'm not quite sure if this should be in the asp.net, or possibly the c# forums...
I'm writing an asp.net calculator application in C#, and at this point it would be very useful if I could somehow save an operator in a variable, and then be able to use it later on, like this:
Let's say I have the integer session variables a=2 and b=4
[CODE=C#]
protected void button_add(obje ct sender, EventArgs e)... -
Edit:
I ran the module in Idle after I just got too frustrated with there being seemingly no info on this on the internet, and lo and behold: It works flawlessly! So either it's the integrated version of python in Leopard that has the limit on it, or there's something fishy with terminal. In either case, it's not really something I expect help with from the scripts.
Thank you for being here though ^^Leave a comment:
-
Raw_input limit
Okay fellow scripters, I have a problem. It's small but annoying. See, I wrote this program for encrypting messages. The program itself runs like a charm, except for one major issue. I'm sure I've read something about this somewhere else, but I just can't think of where, so I turn to thescripts for help.
My program uses the raw_input() thing, and it works perfectly, until I try to encrypt a piece of text that is just too big. So I figure there... -
Anku! (mulefa for thank you!)
I wonder why I didn't think of that, that is brilliant!...Leave a comment:
-
BurnTard has got a new IndexError
Okay, so I know what an IndexError is and all, but that doesn't help me understand why on earth I'm getting this one. I'm writing a program that's supposed skim through directories, dump all files into one list and all directories into another. That's as far as I've gotten now because this is where the nasty error shows up at the very beginning. So without further ado, here's my script:
[code=python]
import os
... -
Dreams-program giving me trouble
Hi guys, it's me! Your least favourite tard has returned with noob-questions needing answers. I am working on making a program that will not only record my dreams in a file, but also store them by date, topic, keywords, and level of lucidness.
This is what I have so far:
[code=python]
ListOfKeywords=[]
ListOfDates=[]
ListOfTopics=[]
LevelOfLucidnes s=[]
temporarykeywor ds=[]... -
Now the program seems to be running along smoothly, though there is one small problem. I'm from Norway, and when I first started using this computer, I did a very stupid thing... I called myself by my real name, which unfortunately contains an norwegian letter, "ΓΈ". Is there any way to make python understand this letter?
At the moment, it can't change a single name, because it runs into this cursed letter before it even...Leave a comment:
-
That makes, if not perfect, a lot of sense! Thank you a lot, this was a great help! You guys just keep on impressing me =P
Again thanks!...Leave a comment:
No activity results to display
Show More
Leave a comment: