| |
| |
| |
|
Page: 1 2 3
Comments:
<0> ahahaaahhaaa <0> weedar <1> AngelDust_Go for teh win! <0> i build a new cl*** <0> to write files <0> when i realized this simple things <0> :S <0> thing <0> ahaah <0> stupid doh! <1> AngelDust_Go, now I don't get an error, but it doesn't wriite to the file :/ <0> ye
<0> did u try catch <0> it? <0> it is an unprotected write <0> AND! <0> u have to supply <0> with the printwriter <0> when calling it!! <0> ns <0> and u ok .. ;) <1> I did not understand that at all AngelDust_Go <0> its because u probably dont have a clue about java <0> .... <0> 1: <0> try{ <0> utfil.println(s); <0> }catch(Exception e){} <0> 2: when calling character( int , int, String, !!!! puT!!! THE!!! PRINTWRITER!!!! HEREEE!!!!) <0> if u call character( i, k, mystring, utfil); <0> and <0> go read <0> sum books kid <0> ! <0> bb all <1> okay, thanks for your help anyway :) <2> sup <3> is there any way to create a Cl*** object with a float, or do I have to use the Float cl***? <4> miyako: a float is primitive <4> it's a special case and falls outside the cl*** hierarcy <4> Float on the other hand is what you need <3> so, is there a way then to reference a method that takes a primitive as a parameter without changing the method to accept a Float? <3> reference a method using a Method object <3> sorry, I'm new to using Reflection <4> yes <3> well, looking at the api for the Cl*** object, the parameters for getDeclaredMethod requires an array of cl***es <3> for the parameters of the method <3> so how would I get a method that uses a primitive datatype if I can't cast the primitive to a cl*** object so that I can have the parameter list of the method? <4> miyako: http://builder.com.com/5100-6370_14-1049698-2.html <4> take a look at that <4> I gotta shoot out <3> ah, ok, that looks like what I was lookign for, thanks <3> hmm <3> is there any simple way to convert an Image to a BufferedImage ? <2> first why? <3> well, I have a BufferedImage and I wanted to scale it. BufferedImage inherits getScaledInstance from Image, but it returns an Image. <2> are you talking about Image or ImageIcon?
<2> for the source? <3> Image <2> how do you get this Image object? <3> by using getScaledInstance <3> if I have a BufferedImage b <3> what I want to do is use <2> ok <2> I don't get the problem <3> b = b.getScaledInstance(320,240,image.SCALE_SMOOTH) <2> you have a BufferedImage and you have a getScaledImage method? <3> but getScaledInstance returns an Image instead of a BufferedImage <2> I mean getScalledInstance <2> ok, so whats the problem? <3> I tried casting the Image to a BufferedImage but I get an InvalidCastException <2> why would you want to? <2> what can you not do with the Image object that you are wanting to do? <3> I have a BufferedImage, I want to scale it, the only method in the API that I've found to scale returns an Image, I need that Image to be a BufferedImage <2> why? <2> whats wrong with the Image object? <3> well, for one I can't get or set the pixel color information in an Image <2> are you going to be scalling it twice? <2> and this is important that you can get and set the pixel color information from the scaled image? <3> yes <2> using 1.5 or 1.4? <3> 1.5 <3> have both installed <2> brb <5> can anyone see why I get a 404 error with tomcat with this setup: http://sql-servers.com/nopaste/?show=382 .. I've restarted the server still no dice <2> miyako ok this ****s, but here goes <2> you can make a new BufferedImage, get a Graphics Object and drawImage into it.. <2> hold on a sec, let me check something <2> yes <2> I think that may work <2> miyako understand? <3> ok, I'll try that <2> ok <3> yeah, thanks caverdude :) <2> np <2> that ****s that you can't build a BufferedImage from a constructor using and Image object <1> I want to write to a file opened in main() in a method for a different cl***. Is this at all possible? <3> yeah, it's almost looking like it might be better for me to just write my own method to scale image. I've already got a heavyweight graphics cl*** anyway, wouldn't hurt to add it in there. <2> well I don't know about that <2> scaling an image can't be simple <2> unless you already have some good algorithms in a book <2> with working java source <2> I wouldnt try it, unless its a simple scaling <3> I don't think it'd be that difficult <3> should work similarly to a gaussian blur algorithm that I've already written I think <2> good luck <2> may the force be with you <3> thanks, I'll need it hehe <3> well, I'm off to code for a bit <3> thanks againf or the help <2> np
Return to
#java or Go to some related
logs:
#linux #php #AllNiteCafe javascript combo box remove value #AllNiteCafe a #javascript #mirc #chatzone convert junit3 tests to junit4
|
|