You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
(39) |
May
(63) |
Jun
(15) |
Jul
(14) |
Aug
(3) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
---|
From: Thomas J. <ntm...@gm...> - 2005-06-21 18:06:47
|
On 6/17/05, Daryl Van Humbeck <dva...@sf...> wrote: > Unfortunately, it's only 200MHz (as apposed to 1.8GHz on my Windows PC), > and only has 144Megs of RAM, so it runs R-E-A-L-L-Y slow. If you have a spare hard drive or extra partition(s) floating around, Linux is capable of happily coexisting with Windows. Alternately, you could try to get Linux running in VMware for testing purposes. If you want, I'd be happy to help you on either of these. |
From: Toby D. <tj...@sf...> - 2005-06-20 19:56:56
|
Would someone like to work on the following feature?=20 Add a rectangle selection tool to TheMatrix that lets a user use the = mouse to conveniently select any rectangular sub-image of the currently = displayed image. This would be useful for cropping images, or selecting sub-images on = which to apply image processing algorithms (e.g. red-eye reduction on a = picture of someone's face should be applied to the area around their eyes only). Making this tool simple and easy to use is the main challenge.=20 Toby -- Dr. Toby Donaldson School of Computing Science (Surrey) Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-06-20 19:52:28
|
Eclipse was not designed to work on older computers, that's for sure. On a such a computer, you would be better off to access the cvs tree via = the command-line CVS commands, or some much simple IDE/tool. Toby -- Dr. Toby Donaldson School of Computing Science (Surrey) Simon Fraser University -----Original Message----- From: csj...@li... [mailto:csj...@li...] On Behalf Of Daryl = Van Humbeck Sent: Friday, June 17, 2005 11:58 AM To: csjava Mailing List Subject: Re: [csjava-developer] TheButtonMatrix update An update on my testing: A few days ago I finally had my Linux box set up and have spent the last = few days locating and installing the dependencies and finally I can do=20 work on it. Unfortunately, it's only 200MHz (as apposed to 1.8GHz on my Windows PC), = and only has 144Megs of RAM, so it runs R-E-A-L-L-Y slow. Also, the first time I ran TheButtonMatrixTest, Eclipse crashed with a=20 fatal exception. But it did work the way it was written, for a few = seconds. Daryl. Daryl Van Humbeck wrote: > Hi, all, > > As per Toby's previous suggestion, I've changed the button panel's=20 > default background colour to White. > > I've also added more "ways" to activate the context menu, namely,=20 > BUTTON2 & Shift+BUTTON1. > I hope that helps somewhat. > > Otherwise, I can't figure out what's wrong with the menus on Linux and = > Max OS X. > You might want to check which version of Java you're using, but I=20 > don't have any experience working with Java on Linux/Unix, so I don't=20 > know how to help yet. > I'm very puzzled :-( > > Daryl. > > --=20 Get Firefox! = <http://www.spreadfirefox.com/?q=3Daffiliates&id=3D106297&t=3D65> --=20 No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.8/22 - Release Date: 17/06/05 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. = http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick _______________________________________________ csjava-developer mailing list csj...@li... https://lists.sourceforge.net/lists/listinfo/csjava-developer |
From: Daryl V. H. <dva...@sf...> - 2005-06-17 18:57:17
|
An update on my testing: A few days ago I finally had my Linux box set up and have spent the last few days locating and installing the dependencies and finally I can do work on it. Unfortunately, it's only 200MHz (as apposed to 1.8GHz on my Windows PC), and only has 144Megs of RAM, so it runs R-E-A-L-L-Y slow. Also, the first time I ran TheButtonMatrixTest, Eclipse crashed with a fatal exception. But it did work the way it was written, for a few seconds. Daryl. Daryl Van Humbeck wrote: > Hi, all, > > As per Toby's previous suggestion, I've changed the button panel's > default background colour to White. > > I've also added more "ways" to activate the context menu, namely, > BUTTON2 & Shift+BUTTON1. > I hope that helps somewhat. > > Otherwise, I can't figure out what's wrong with the menus on Linux and > Max OS X. > You might want to check which version of Java you're using, but I > don't have any experience working with Java on Linux/Unix, so I don't > know how to help yet. > I'm very puzzled :-( > > Daryl. > > -- Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=106297&t=65> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.8/22 - Release Date: 17/06/05 |
From: Toby D. <tj...@sf...> - 2005-06-13 19:29:17
|
TopCoder is a lot of fun ... Toby -- Dr. Toby Donaldson School of Computing Science (Surrey) Simon Fraser University -----Original Message----- From: TopCoder Competitions [mailto:com...@to...]=20 Sent: Monday, June 13, 2005 7:00 AM To: tj...@sf... Subject: Registration is now open for 2005 TCO Components Competition Hello stuque, =20 Registration is now open for the Component Design and Development Competition of the 2005 TopCoder(R) Open, Sponsored by Sun = Microsystems(R). Registration is required for participation - so don't forget! The = deadline for registration into this competition is Wednesday, June 29 at 9:00AM = EDT (GMT -4). =20 For those who plan on participating in the Component Competition (either Design or Development), registration is required before signing up for = your first component. =20 Registration for the Algorithm competition starts Monday, August 1 at = 9:00AM EDT and goes through August 16 at 9:00AM EDT (GMT -4). =20 In order to register for either competition, log in to = www.topcoder.com/tc, and check the upper-right corner of your member home page for the registration message. =20 *********************************************************************** The Sun(SM) Developer Network (SDN), Sun Microsystem's premier developer community and program, is honored to sponsor the 2005 TopCoder Open and = be part of the passion and innovation shown by TopCoder members in this competition. =20 To help you reduce the cost and complexity of creating web applications, = the SDN Program is proud to bring you Sun Java(TM) Studio Creator, the = premier 100% Java(TM)-based IDE that sets the standard for web application development with the Java programming language. =20 We will soon be announcing the Java Studio Creator Early Access program, = an opportunity for you to participate and influence future product = direction of the software by providing your comments and feedback. Stay tuned for = more information at the home of the SDN Program: http://developers.sun.com =20 Let the Coding begin! =20 http://www.topcoder.com/tc?module=3DStatic&d1=3Dtournaments&d2=3Dtco05&d3= =3Dsun *********************************************************************** =20 Best of luck to you in the 2005 TCO! =20 - The TopCoder Competitions Team =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D You have received this email because you indicated in your TopCoder = profile that you want to be notified of TopCoder News and Events. If you no = longer wish to receive these emails, login to www.topcoder.com/tc and click on 'UPDATE PROFILE'. In the 'Email Notification' section of your TopCoder profile, you have the option to enable or disable receipt of various = types of TopCoder emails. Be sure to save any changes to your member profile. =20 www.topcoder.com TopCoder, Inc. 703 Hebron Avenue Glastonbury, CT 06033 Phone: 1-866-867-2633 =20 |
From: Daryl V. H. <dva...@sf...> - 2005-06-09 19:27:50
|
Hi, all, As per Toby's previous suggestion, I've changed the button panel's default background colour to White. I've also added more "ways" to activate the context menu, namely, BUTTON2 & Shift+BUTTON1. I hope that helps somewhat. Otherwise, I can't figure out what's wrong with the menus on Linux and Max OS X. You might want to check which version of Java you're using, but I don't have any experience working with Java on Linux/Unix, so I don't know how to help yet. I'm very puzzled :-( Daryl. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.6.6 - Release Date: 08/06/05 |
From: Daryl V. H. <dva...@sf...> - 2005-06-07 04:55:23
|
Ok, this has been on my mind for quite a while now that I should introduce myself, so that's what I'm going to do now. I'm currently a TechOne student, and am going into Computing Science in the Fall. I also have several years of programming experience before this in QBasic, C and Java, with far more experience in the latter. Besides programming experience, I also have knowledge in writing webpages with HTML, JavaScript, and Cascading Style Sheets, as well as some image manipulation. My current contributions to the csjava project are (if you've missed them): - TheButtonMatrix, adding buttons and menu items to the window - The cschatbot code, for creating Jabber bots to chat with/to - Some outdated transparency code in TheTransparentMatrix Daryl, aka raceimaztion. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.6.4 - Release Date: 06/06/05 |
From: Daryl V. H. <dva...@sf...> - 2005-06-01 03:19:47
|
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 267.3.3 - Release Date: 31/05/05 |
From: Toby D. <tj...@sf...> - 2005-06-01 00:29:49
|
Sounds great. Interestingly, I can=B9t quite get this to work on my Linux computer. The men= u and context menu don=B9t appear at all. On Mac OS X, the menu appears to work= , but not the context menu (although this might be a quirk of the single-button mouse-pad I am using at the moment). By default, I think the context menu should always be enabled. Toby On 5/31/05 4:11 PM, "Daryl Van Humbeck" <dva...@sf...> wrote: > I've added a main menubar, a context menu and added a kind of hack to > TheMatrix. >=20 > The "hack" I added to TheMatrix is a method called superPaint(Graphics g)= that > just calls super.paint(g) so I don't have to compensate for TheMatrix's > paint() method not calling super.paint(). >=20 > The main menubar and the context menu have buttons with the same labels a= nd > actions as the default buttons (save, load & close). >=20 > Daryl. >=20 > Toby Donaldson wrote: >> Re: [csjava-developer] TheButtonMatrix comments For now, the menus shou= ld >> just be an option for displaying the load/save/close buttons. Since no o= ne >> seems to need to the ability to add extra buttons, don=B9t worry about it = for >> now. If it=B9s easy to arrange the code in a way so that in the future add= ing >> extra buttons is easy, then that=B9s a bonus; but don=B9t do it if makes the >> implementation too complex or hard to understand. Simplicity is more >> important than flexibility or completeness, for now. >> =20 >> Toby >> =20 >> =20 >> On 5/26/05 9:15 AM, "Daryl Van Humbeck" <dva...@sf...> >> <mailto:dva...@sf...> wrote: >> =20 >> =20 >>> Ok, I found out what I was doing wrong. >>> =20 >>> I was calling _refit() which resizes the window to the image's size the= n >>> centers the window, when I should have been calling center() which just >>> centers the window. >>> I fixed that and that solved the overlap problem. >>> =20 >>> Though I'm still a little uncertain about how to implement the menu. >>> Should I let the user add things to it? >>> Should I let the user have the option of implementing the things with >>> buttons or menu items? >>> Maybe just have the default (load, save & close) as menu items and the >>> user-added stuff as buttons? >>> I'm not sure. >>> =20 >>> I've added a debug line drawing option to the ImagePainter component so= you >>> can check to make sure the whole image is being displayed. >>> Just call .enableDebugLines(true) on TheButtonMatrix object to enable t= hem. >>> =20 >>> Daryl. >>> =20 >>> Toby Donaldson wrote: >>> =20 >>>> =20 >>>> Hi Daryl, >>>> =20 >>>> Actually, I've check it in Windows XP, Linux, and Mac OS X (i.e. Unix)= , and >>>> they each show framing problems. I don't always check them on all thre= e, >>>> but >>>> in this case I did. >>>> =20 >>>> Even the most recent versions show the same sort of problem. When I ru= n the >>>> test1(), test2(), test3() methods of the ButtonTest class, there is st= ill >>>> overlap at the bottom of the image. >>>> =20 >>>> Toby >>>> =20 >>>> =20 >>>> On 5/20/05 10:23 AM, "Daryl Van Humbeck" <dva...@sf...> >>>> <mailto:dva...@sf...> <mailto:dva...@sf...> wrote: >>>> =20 >>>> =20 >>>> =20 >>>> =20 >>>>> =20 >>>>> Unfortunately, I didn't see what you saw. >>>>> =20 >>>>> Another problem I have is I only have one platform to test things on >>>>> (Windows 98SE), whereas you're probably using Windows XP. >>>>> =20 >>>>> So, I've looked at my code and tried to figure out what might cause t= he >>>>> problems you mention, and discovered that I'm not packing the window = and >>>>> then refitting it. >>>>> I added that code and think it solves some problems. >>>>> =20 >>>>> I haven't done anything about the ragged buttons yet, but I'll get to >>>>> that soon. Maybe I can use a different Layout manager... >>>>> =20 >>>>> Please update and test again and see if that solves those problems. >>>>> =20 >>>>> I do agree that the buttons take up space and a menu would probably d= o >>>>> better. >>>>> Maybe some sort of system that lets the user choose from a variety of >>>>> different methods of displaying a bunch of actions? >>>>> i.e., some buttons, some menu items, some property (right-click) menu >>>>> items, etc. >>>>> =20 >>>>> Just some thoughts. >>>>> =20 >>>>> Daryl. >>>>> =20 >>>>> Toby Donaldson wrote: >>>>> =20 >>>>> =20 >>>>> =20 >>>>> =20 >>>>>> =20 >>>>>> Daryl, >>>>>> =20 >>>>>> I've been looking at TheButtonMatrix, and I think it's nearly read t= o >>>>>> add to TheMatrix. An essential fix is needed, though: >>>>>> =20 >>>>>> - The image is not correctly set in the frame. The bottom of the fra= me >>>>>> is too low, and so a gray line is visible. Also, the right side of t= he >>>>>> entire image is apparently covered by the button panel. The image mu= st >>>>>> appear precisely in the frame, with no excess space or overlapping. >>>>>> =20 >>>>>> In addition, there are some possible improvements that would probabl= y >>>>>> make it better, although we can live without them: >>>>>> =20 >>>>>> - The button panel background is big, gray, and unappealing. Can it = be >>>>>> white instead? Can a method to set the button panel background be ad= ded? >>>>>> - When the button panel is put on the left side of the image, the >>>>>> right edge of the buttons is ragged because the buttons are not the >>>>>> same width. This looks messy and should be fixed, i.e. the buttons >>>>>> should be made the same width. >>>>>> - After seeing the button panels, I think a menu bar with a menu >>>>>> containing the save/load/close features would probably look nicer. F= or >>>>>> beginners, having the buttons right on the screen where they can see >>>>>> them is good, because then they don't need to hunt around or guess >>>>>> what features are available. But there is so much unused space, that >>>>>> after a while I suspect many users will find that to be a bit of an >>>>>> eyesore. So a menu bar might be the nicest way to deal with this. >>>>>> - And speaking of the menu bar, another possibility is to use a >>>>>> mouse-click menu, e.g. when the user, say, right-clicks on the image= , >>>>>> a menu with the save/load/close options would pop up. For frequent >>>>>> users of TheMatrix, this might be popular. >>>>>> =20 >>>>>> I added the file ButtonTest into your developer package on CVS with = a >>>>>> few more test rungs, including a few comments. I also add the method >>>>>> "enableAllButtons" to TheButtonMatrix. >>>>>> =20 >>>>>> Toby >>>>>> =20 >>>>>> =20 >>>>>> ------------------------------------------------------- >>>>>> This SF.Net email is sponsored by Oracle Space Sweepstakes >>>>>> Want to be the first software developer in space? >>>>>> Enter now for the Oracle Space Sweepstakes! >>>>>> http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick >>>>>> <http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick> >>>>>> _______________________________________________ >>>>>> csjava-developer mailing list >>>>>> csj...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/csjava-developer >>>>>> =20 >>>>>> =20 >>>>>> =20 >>>>>> =20 >>>>>> =20 >>>>>> =20 >>>>> =20 >>>>> =20 >>>>> =20 >>>>> =20 >>>>> =20 >>>> =20 >>>> =20 >>>> =20 >>>> =20 >>> =20 >>> =20 >>> =20 >>>=20 >>> No virus found in this outgoing message. >>> Checked by AVG Anti-Virus. >>> Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 25/05/05 >>> =20 >> =20 >> =20 >> --=20 >> Dr. Toby Donaldson >> School of Computing Science >> Simon Fraser University >> =20 >>=20 >>=20 >>=20 >> No virus found in this incoming message. >> Checked by AVG Anti-Virus. >> Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 25/05/05 >> =20 >=20 >=20 >=20 > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 267.3.3 - Release Date: 31/05/05 --=20 Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Daryl V. H. <dva...@sf...> - 2005-05-31 23:11:10
|
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 267.3.3 - Release Date: 31/05/05 |
From: Daryl V. H. <dva...@sf...> - 2005-05-27 02:48:01
|
I temporarily commented out some constructors that used scaleFactor in the csimage/demo/openhouse and csimage/demo/openhouse/project2 packages. Their little red crosses were getting annoying. If you want to see what I commented out, just search for REMOVED. I marked them all with REMOVED: Daryl Van Humbeck (raceimaztion). I guess I should have also indicated the date. Oh well. Daryl. Toby Donaldson wrote: > Hi all, > > I've just gone through and removed all the image scaling code from > TheMatrix. It should work the same as before, except now you can't > scale images. Everyone should update their local right away, since > there are many small changes scattered throughout the project. > > Alex and Daryl: I also modified your extended versions of TheMatrix to > remove the scaling code in them. They should work the same, but be > sure to get the updated versions as soon as possible. > > Toby > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > csjava-developer mailing list > csj...@li... > https://lists.sourceforge.net/lists/listinfo/csjava-developer > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 25/05/05 |
From: Toby D. <tj...@sf...> - 2005-05-26 21:11:25
|
For now, the menus should just be an option for displaying the load/save/close buttons. Since no one seems to need to the ability to add extra buttons, don=B9t worry about it for now. If it=B9s easy to arrange the code in a way so that in the future adding extra buttons is easy, then that=B9s a bonus; but don=B9t do it if makes the implementation too complex or hard to understand. Simplicity is more important than flexibility or completeness, for now. Toby On 5/26/05 9:15 AM, "Daryl Van Humbeck" <dva...@sf...> wrote: > Ok, I found out what I was doing wrong. >=20 > I was calling _refit() which resizes the window to the image's size then > centers the window, when I should have been calling center() which just > centers the window. > I fixed that and that solved the overlap problem. >=20 > Though I'm still a little uncertain about how to implement the menu. > Should I let the user add things to it? > Should I let the user have the option of implementing the things with but= tons > or menu items? > Maybe just have the default (load, save & close) as menu items and the > user-added stuff as buttons? > I'm not sure. >=20 > I've added a debug line drawing option to the ImagePainter component so y= ou > can check to make sure the whole image is being displayed. > Just call .enableDebugLines(true) on TheButtonMatrix object to enable the= m. >=20 > Daryl. >=20 > Toby Donaldson wrote: >> =20 >> Hi Daryl, >>=20 >> Actually, I've check it in Windows XP, Linux, and Mac OS X (i.e. Unix), = and >> they each show framing problems. I don't always check them on all three,= but >> in this case I did. >>=20 >> Even the most recent versions show the same sort of problem. When I run = the >> test1(), test2(), test3() methods of the ButtonTest class, there is stil= l >> overlap at the bottom of the image. >>=20 >> Toby >>=20 >>=20 >> On 5/20/05 10:23 AM, "Daryl Van Humbeck" <dva...@sf...> >> <mailto:dva...@sf...> wrote: >>=20 >> =20 >> =20 >>> =20 >>> Unfortunately, I didn't see what you saw. >>>=20 >>> Another problem I have is I only have one platform to test things on >>> (Windows 98SE), whereas you're probably using Windows XP. >>>=20 >>> So, I've looked at my code and tried to figure out what might cause the >>> problems you mention, and discovered that I'm not packing the window an= d >>> then refitting it. >>> I added that code and think it solves some problems. >>>=20 >>> I haven't done anything about the ragged buttons yet, but I'll get to >>> that soon. Maybe I can use a different Layout manager... >>>=20 >>> Please update and test again and see if that solves those problems. >>>=20 >>> I do agree that the buttons take up space and a menu would probably do >>> better. >>> Maybe some sort of system that lets the user choose from a variety of >>> different methods of displaying a bunch of actions? >>> i.e., some buttons, some menu items, some property (right-click) menu >>> items, etc. >>>=20 >>> Just some thoughts. >>>=20 >>> Daryl. >>>=20 >>> Toby Donaldson wrote: >>>=20 >>> =20 >>> =20 >>>> =20 >>>> Daryl, >>>>=20 >>>> I've been looking at TheButtonMatrix, and I think it's nearly read to >>>> add to TheMatrix. An essential fix is needed, though: >>>>=20 >>>> - The image is not correctly set in the frame. The bottom of the frame >>>> is too low, and so a gray line is visible. Also, the right side of the >>>> entire image is apparently covered by the button panel. The image must >>>> appear precisely in the frame, with no excess space or overlapping. >>>>=20 >>>> In addition, there are some possible improvements that would probably >>>> make it better, although we can live without them: >>>>=20 >>>> - The button panel background is big, gray, and unappealing. Can it be >>>> white instead? Can a method to set the button panel background be adde= d? >>>> - When the button panel is put on the left side of the image, the >>>> right edge of the buttons is ragged because the buttons are not the >>>> same width. This looks messy and should be fixed, i.e. the buttons >>>> should be made the same width. >>>> - After seeing the button panels, I think a menu bar with a menu >>>> containing the save/load/close features would probably look nicer. For >>>> beginners, having the buttons right on the screen where they can see >>>> them is good, because then they don't need to hunt around or guess >>>> what features are available. But there is so much unused space, that >>>> after a while I suspect many users will find that to be a bit of an >>>> eyesore. So a menu bar might be the nicest way to deal with this. >>>> - And speaking of the menu bar, another possibility is to use a >>>> mouse-click menu, e.g. when the user, say, right-clicks on the image, >>>> a menu with the save/load/close options would pop up. For frequent >>>> users of TheMatrix, this might be popular. >>>>=20 >>>> I added the file ButtonTest into your developer package on CVS with a >>>> few more test rungs, including a few comments. I also add the method >>>> "enableAllButtons" to TheButtonMatrix. >>>>=20 >>>> Toby >>>>=20 >>>>=20 >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by Oracle Space Sweepstakes >>>> Want to be the first software developer in space? >>>> Enter now for the Oracle Space Sweepstakes! >>>> http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick >>>> _______________________________________________ >>>> csjava-developer mailing list >>>> csj...@li... >>>> https://lists.sourceforge.net/lists/listinfo/csjava-developer >>>>=20 >>>>=20 >>>>=20 >>>> =20 >>>> =20 >>> =20 >>>=20 >>> =20 >>> =20 >> =20 >>=20 >> =20 >=20 >=20 >=20 > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 25/05/05 --=20 Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Daryl V. H. <dva...@sf...> - 2005-05-26 16:15:07
|
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 25/05/05 |
From: John E. <joh...@sf...> - 2005-05-25 14:35:18
|
Hi, I intend to close the reading .bmp files request. Reading .bmp files is not supported in Java 1.4, hence the request but it is in Java 1.5 so once we are fully compliant with 1.5 this should no longer be an issue (and .png files are better anyway!). Unless I hear any reasoned objections I'll close this request tomorrow. Cheers. --------------------- John Edgar Lecturer, SFU Surrey Ph: 604.268.7534 Office: 15-270 |
From: Toby D. <tj...@sf...> - 2005-05-24 18:28:34
|
Hi Angela, Here's how I do it. I create a new Java project in Eclipse in the ordinary way, and then use the "import" option in the project to import the package I want from CVS into my project. Toby Angela wrote: >Hi Toby, > >I have finally solved my problem with CVS; I can connect to it now. However, >I don't know how to creat subpackage or importing files from the CVS. Could >you teach me or point me to a tutorial? Thanks. > >status of my section: > >cropping - incomplete (I'm still having quiet the trouble adjusting to the >system. My apology for my slow progress.) > >best, > >Angela > >On Thu, 19 May 2005 13:57:55 -0700 ntm...@gm... wrote: > > >>On 5/18/05, Toby Donaldson <tj...@sf...> wrote: >> >> >>> public interface Cropped { >>> public void cropTop(int numPixels); >>> public void cropBottom(int numPixels); >>> public void cropLeft(int numPixels); >>> public void cropRight(int numPixels); >>> } >>> >>>(I've never implemented cropping before, so this might not turn out to >>> >>> >be > > >>>the best interface. If you or anyone has other ideas, by all means >>> >>> >please > > >>>suggest them.) >>> >>> >>Might also be worth adding a "cropToRectangle(upperLeftX, upperLeftY, >>lowerRightX, lowerRightY)" for easier photoshop-style cropping, as >>well as specifying a default behaviour for the case that numPixels > >>MatrixWidth >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by Oracle Space Sweepstakes >>Want to be the first software developer in space? >>Enter now for the Oracle Space Sweepstakes! >>http://ads.osdn.com/?ad_idt12&alloc_id344&opÌk >>_______________________________________________ >>csjava-developer mailing list >>csj...@li... >>https://lists.sourceforge.net/lists/listinfo/csjava-developer >> >> >> >> > > >------------------- >Angela Hongwei Ma >301007495 >ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÓ†+ó^µéšŠX¬²š'²ŠÞu¼Ž§%y*Zqä°yêlµ©±f§¶ÚzØ^~*ì¶Ê·«yׯzZ)z¸§²–œ{ñ'µêç£è®Ø^:¶œ•ä©iÇ’Á穲֤zÏá¶Úÿÿö³ú,vÜ¢oÿißâ×oÚ–Zþ'×øãú)rOÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýË#jöÿuëÞ–Š^®f¢–)à–+-rÈÚ½¯Ýz÷¥¢—«þX¬¶Ïì¢êÜyú+ïçzØm¶›ÿÿùb²Ûÿ²‹«qçè®ÿë–+-³ùb²Ø§~ܲ6¯k÷^½éh > > > > > |
From: Angela <hw...@sf...> - 2005-05-21 04:13:42
|
SGkgVG9ieSwNCg0NCkkgaGF2ZSBmaW5hbGx5IHNvbHZlZCBteSBwcm9ibGVtIHdpdGggQ1ZT OyBJIGNhbiBjb25uZWN0IHRvIGl0IG5vdy4gSG93ZXZlciwNCkkgZG9uJ3Qga25vdyBob3cg dG8gY3JlYXQgc3VicGFja2FnZSBvciBpbXBvcnRpbmcgZmlsZXMgZnJvbSB0aGUgQ1ZTLiBD b3VsZA0KeW91IHRlYWNoIG1lIG9yIHBvaW50IG1lIHRvIGEgdHV0b3JpYWw/IFRoYW5rcy4g DQ0KDQ0Kc3RhdHVzIG9mIG15IHNlY3Rpb246DQ0KDQ0KY3JvcHBpbmcgLSBpbmNvbXBsZXRl IChJJ20gc3RpbGwgaGF2aW5nIHF1aWV0IHRoZSB0cm91YmxlIGFkanVzdGluZyB0byB0aGUN CnN5c3RlbS4gTXkgYXBvbG9neSBmb3IgbXkgc2xvdyBwcm9ncmVzcy4pDQ0KDQ0KYmVzdCwN DQoNDQpBbmdlbGENDQoNDQpPbiBUaHUsIDE5IE1heSAyMDA1IDEzOjU3OjU1IC0wNzAwIG50 bWF0dGVyQGdtYWlsLmNvbSB3cm90ZToNDQo+IE9uIDUvMTgvMDUsIFRvYnkgRG9uYWxkc29u IDx0amRAc2Z1LmNhPiB3cm90ZToNDQo+ID4gICAgcHVibGljIGludGVyZmFjZSBDcm9wcGVk IHsNDQo+ID4JICAgcHVibGljIHZvaWQgY3JvcFRvcChpbnQgbnVtUGl4ZWxzKTsNDQo+ID4J ICAgcHVibGljIHZvaWQgY3JvcEJvdHRvbShpbnQgbnVtUGl4ZWxzKTsNDQo+ID4JICAgcHVi bGljIHZvaWQgY3JvcExlZnQoaW50IG51bVBpeGVscyk7DQ0KPiA+CSAgIHB1YmxpYyB2b2lk IGNyb3BSaWdodChpbnQgbnVtUGl4ZWxzKTsNDQo+ID4gICAgfQ0NCj4gPiANDQo+ID4gKEkn dmUgbmV2ZXIgaW1wbGVtZW50ZWQgY3JvcHBpbmcgYmVmb3JlLCBzbyB0aGlzIG1pZ2h0IG5v dCB0dXJuIG91dCB0bw0KYmUNDQo+ID4gdGhlIGJlc3QgaW50ZXJmYWNlLiBJZiB5b3Ugb3Ig YW55b25lIGhhcyBvdGhlciBpZGVhcywgYnkgYWxsIG1lYW5zDQpwbGVhc2UNDQo+ID4gc3Vn Z2VzdCB0aGVtLikNDQo+IA0NCj4gTWlnaHQgYWxzbyBiZSB3b3J0aCBhZGRpbmcgYSAiY3Jv cFRvUmVjdGFuZ2xlKHVwcGVyTGVmdFgsIHVwcGVyTGVmdFksDQ0KPiBsb3dlclJpZ2h0WCwg bG93ZXJSaWdodFkpIiBmb3IgZWFzaWVyIHBob3Rvc2hvcC1zdHlsZSBjcm9wcGluZywgYXMN DQo+IHdlbGwgYXMgc3BlY2lmeWluZyBhIGRlZmF1bHQgYmVoYXZpb3VyIGZvciB0aGUgY2Fz ZSB0aGF0IG51bVBpeGVscyA+DQ0KPiBNYXRyaXhXaWR0aA0NCj4gDQ0KPiANDQo+IC0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NDQo+ IFRoaXMgU0YuTmV0IGVtYWlsIGlzIHNwb25zb3JlZCBieSBPcmFjbGUgU3BhY2UgU3dlZXBz dGFrZXMNDQo+IFdhbnQgdG8gYmUgdGhlIGZpcnN0IHNvZnR3YXJlIGRldmVsb3BlciBpbiBz cGFjZT8NDQo+IEVudGVyIG5vdyBmb3IgdGhlIE9yYWNsZSBTcGFjZSBTd2VlcHN0YWtlcyEN DQo+IGh0dHA6Ly9hZHMub3Nkbi5jb20vP2FkX2lkdDEyJmFsbG9jX2lkFjM0NCZvcMxrDQ0K PiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0NCj4g Y3NqYXZhLWRldmVsb3BlciBtYWlsaW5nIGxpc3QNDQo+IGNzamF2YS1kZXZlbG9wZXJAbGlz dHMuc291cmNlZm9yZ2UubmV0DQ0KPiBodHRwczovL2xpc3RzLnNvdXJjZWZvcmdlLm5ldC9s aXN0cy9saXN0aW5mby9jc2phdmEtZGV2ZWxvcGVyDQ0KPiANDQo+IA0NCg0NCg0NCi0tLS0t LS0tLS0tLS0tLS0tLS0NDQpBbmdlbGEgSG9uZ3dlaSBNYQ0NCjMwMTAwNzQ5NQ0K |
From: Daryl V. H. <dva...@sf...> - 2005-05-20 23:30:05
|
I am currently attempting to install SuSE Linux on another computer I have, but haven't been successful yet. I have seen the LiveCD/DVD disk images and think it might be a good test, but haven't tried it yet. Daryl. Toby Donaldson wrote: >>Another problem I have is I only have one platform to test things on >>(Windows 98SE), whereas you're probably using Windows XP. >> >> > >You could easily give Linux a try, e.g. with a "Live" Linux CD such as >Knoppix (http://www.knoppix.org/). I believe it can access a Windows >formatted disk, and so it's good for "crash recovery", and test-driving >Linux without having to re-partition your disk. > >Toby > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.14 - Release Date: 20/05/05 |
From: Thomas J. <ntm...@gm...> - 2005-05-20 21:22:46
|
On 5/19/05, he...@sf... <he...@sf...> wrote: > Example: Comparing only without "BufferedImage@e2cb55:" @e2cb55 is the > buffered image's memory location right? According to http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#= toString() the default toString() method (implicitly called on non-String objects when you print them) outputs the class name and the hash code of the object being printed. By the looks of it, hashcode()'s default implementation will return the address of the object in question. It is worth noting that it is not always possible to rely on this fact, as the default hashcode() is implementation-dependant, and may vary between implementations of the Java Virtual Machine. > If I only use m.getImage().getdata() then I just receive line2's info, so= if > I required to compare A's line 1&2 with B'line1&2 in order to proove the = two > image are equal, then getdata is insufficient(imcomplete), because it lef= t > out some data. This is correct. > In sum, let's recap. the problem: compare line 2 only to proove two buffe= red > image equal? >=20 > Yes (error) or No (.tostring and stringtokenizer consideration)? It might take a bit more than just comparing the output of toString() to determine the equality of two images. In reference to the following cohe from TheMatrixTest.java:811 rev 1.13 assert m.getImage().getData() =3D=3D bufferedImage.getData(); First off, I think it's worth asking what kind of equality you're trying to provide here. For objects, the =3D=3D operator compares whether two variables refer to the same object. It's a bit like saying that my name's Thomas, but I'm also referred to as NTmatter -- The names Thomas and NTmatter are for the same object. Contrast this to my (fictional) identical twin, Trevor, who is completely identical to me in all ways, but is a different object altogether. This means that Trevor =3D=3D Thomas is false in all cases, even though Trevor.equals(Thomas) might return true. The distinction between objects and primitives is important, as =3D=3D compares the actual values for primitives. eg, int One =3D 1; int Won =3D 1; One =3D=3D Won is true, because One and Won hold the same value, even though they're stored in different locations in memory. In the present test case, it is pretty much guaranteed that m's image data is not going to be the same data as the BufferedImage's data, as they'll have gone and loaded their image data into seperate Rasters. Raster1 !=3D Raster2. If you're looking for a pixel-by-pixel or component-wise equality (Thomas same as Trevor), then you might want to try a different approach. Fortunately, the java.awt.image.Raster class provides several methods that will be of use to you. Namely, the get{Bands,Width,Height,Pixel,Sample} methods all provide primitive data that can be easily compared by means of the =3D=3D operator. |
From: Toby D. <tj...@sf...> - 2005-05-20 20:50:22
|
Hi Daryl, Actually, I've check it in Windows XP, Linux, and Mac OS X (i.e. Unix), and they each show framing problems. I don't always check them on all three, but in this case I did. Even the most recent versions show the same sort of problem. When I run the test1(), test2(), test3() methods of the ButtonTest class, there is still overlap at the bottom of the image. Toby On 5/20/05 10:23 AM, "Daryl Van Humbeck" <dva...@sf...> wrote: > Unfortunately, I didn't see what you saw. > > Another problem I have is I only have one platform to test things on > (Windows 98SE), whereas you're probably using Windows XP. > > So, I've looked at my code and tried to figure out what might cause the > problems you mention, and discovered that I'm not packing the window and > then refitting it. > I added that code and think it solves some problems. > > I haven't done anything about the ragged buttons yet, but I'll get to > that soon. Maybe I can use a different Layout manager... > > Please update and test again and see if that solves those problems. > > I do agree that the buttons take up space and a menu would probably do > better. > Maybe some sort of system that lets the user choose from a variety of > different methods of displaying a bunch of actions? > i.e., some buttons, some menu items, some property (right-click) menu > items, etc. > > Just some thoughts. > > Daryl. > > Toby Donaldson wrote: > >> Daryl, >> >> I've been looking at TheButtonMatrix, and I think it's nearly read to >> add to TheMatrix. An essential fix is needed, though: >> >> - The image is not correctly set in the frame. The bottom of the frame >> is too low, and so a gray line is visible. Also, the right side of the >> entire image is apparently covered by the button panel. The image must >> appear precisely in the frame, with no excess space or overlapping. >> >> In addition, there are some possible improvements that would probably >> make it better, although we can live without them: >> >> - The button panel background is big, gray, and unappealing. Can it be >> white instead? Can a method to set the button panel background be added? >> - When the button panel is put on the left side of the image, the >> right edge of the buttons is ragged because the buttons are not the >> same width. This looks messy and should be fixed, i.e. the buttons >> should be made the same width. >> - After seeing the button panels, I think a menu bar with a menu >> containing the save/load/close features would probably look nicer. For >> beginners, having the buttons right on the screen where they can see >> them is good, because then they don't need to hunt around or guess >> what features are available. But there is so much unused space, that >> after a while I suspect many users will find that to be a bit of an >> eyesore. So a menu bar might be the nicest way to deal with this. >> - And speaking of the menu bar, another possibility is to use a >> mouse-click menu, e.g. when the user, say, right-clicks on the image, >> a menu with the save/load/close options would pop up. For frequent >> users of TheMatrix, this might be popular. >> >> I added the file ButtonTest into your developer package on CVS with a >> few more test rungs, including a few comments. I also add the method >> "enableAllButtons" to TheButtonMatrix. >> >> Toby >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by Oracle Space Sweepstakes >> Want to be the first software developer in space? >> Enter now for the Oracle Space Sweepstakes! >> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >> _______________________________________________ >> csjava-developer mailing list >> csj...@li... >> https://lists.sourceforge.net/lists/listinfo/csjava-developer >> >> >> > > -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Daryl V. H. <dva...@sf...> - 2005-05-20 20:20:45
|
Ok, I've written a new Layout manager that arranges the buttons based on what you've mentioned, and it seems to work. I've also added a method called setButtonPanelBackground(Color c) that sets the button panel's background color. Daryl. Daryl Van Humbeck wrote: > Unfortunately, I didn't see what you saw. > > Another problem I have is I only have one platform to test things on > (Windows 98SE), whereas you're probably using Windows XP. > > So, I've looked at my code and tried to figure out what might cause > the problems you mention, and discovered that I'm not packing the > window and then refitting it. > I added that code and think it solves some problems. > > I haven't done anything about the ragged buttons yet, but I'll get to > that soon. Maybe I can use a different Layout manager... > > Please update and test again and see if that solves those problems. > > I do agree that the buttons take up space and a menu would probably do > better. > Maybe some sort of system that lets the user choose from a variety of > different methods of displaying a bunch of actions? > i.e., some buttons, some menu items, some property (right-click) menu > items, etc. > > Just some thoughts. > > Daryl. > > Toby Donaldson wrote: > >> Daryl, >> >> I've been looking at TheButtonMatrix, and I think it's nearly read to >> add to TheMatrix. An essential fix is needed, though: >> >> - The image is not correctly set in the frame. The bottom of the >> frame is too low, and so a gray line is visible. Also, the right side >> of the entire image is apparently covered by the button panel. The >> image must appear precisely in the frame, with no excess space or >> overlapping. >> >> In addition, there are some possible improvements that would probably >> make it better, although we can live without them: >> >> - The button panel background is big, gray, and unappealing. Can it >> be white instead? Can a method to set the button panel background be >> added? >> - When the button panel is put on the left side of the image, the >> right edge of the buttons is ragged because the buttons are not the >> same width. This looks messy and should be fixed, i.e. the buttons >> should be made the same width. >> - After seeing the button panels, I think a menu bar with a menu >> containing the save/load/close features would probably look nicer. >> For beginners, having the buttons right on the screen where they can >> see them is good, because then they don't need to hunt around or >> guess what features are available. But there is so much unused space, >> that after a while I suspect many users will find that to be a bit of >> an eyesore. So a menu bar might be the nicest way to deal with this. >> - And speaking of the menu bar, another possibility is to use a >> mouse-click menu, e.g. when the user, say, right-clicks on the image, >> a menu with the save/load/close options would pop up. For frequent >> users of TheMatrix, this might be popular. >> >> I added the file ButtonTest into your developer package on CVS with a >> few more test rungs, including a few comments. I also add the method >> "enableAllButtons" to TheButtonMatrix. >> >> Toby >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by Oracle Space Sweepstakes >> Want to be the first software developer in space? >> Enter now for the Oracle Space Sweepstakes! >> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >> _______________________________________________ >> csjava-developer mailing list >> csj...@li... >> https://lists.sourceforge.net/lists/listinfo/csjava-developer >> >> >> > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.14 - Release Date: 20/05/05 |
From: Daryl V. H. <dva...@sf...> - 2005-05-20 17:24:04
|
Unfortunately, I didn't see what you saw. Another problem I have is I only have one platform to test things on (Windows 98SE), whereas you're probably using Windows XP. So, I've looked at my code and tried to figure out what might cause the problems you mention, and discovered that I'm not packing the window and then refitting it. I added that code and think it solves some problems. I haven't done anything about the ragged buttons yet, but I'll get to that soon. Maybe I can use a different Layout manager... Please update and test again and see if that solves those problems. I do agree that the buttons take up space and a menu would probably do better. Maybe some sort of system that lets the user choose from a variety of different methods of displaying a bunch of actions? i.e., some buttons, some menu items, some property (right-click) menu items, etc. Just some thoughts. Daryl. Toby Donaldson wrote: > Daryl, > > I've been looking at TheButtonMatrix, and I think it's nearly read to > add to TheMatrix. An essential fix is needed, though: > > - The image is not correctly set in the frame. The bottom of the frame > is too low, and so a gray line is visible. Also, the right side of the > entire image is apparently covered by the button panel. The image must > appear precisely in the frame, with no excess space or overlapping. > > In addition, there are some possible improvements that would probably > make it better, although we can live without them: > > - The button panel background is big, gray, and unappealing. Can it be > white instead? Can a method to set the button panel background be added? > - When the button panel is put on the left side of the image, the > right edge of the buttons is ragged because the buttons are not the > same width. This looks messy and should be fixed, i.e. the buttons > should be made the same width. > - After seeing the button panels, I think a menu bar with a menu > containing the save/load/close features would probably look nicer. For > beginners, having the buttons right on the screen where they can see > them is good, because then they don't need to hunt around or guess > what features are available. But there is so much unused space, that > after a while I suspect many users will find that to be a bit of an > eyesore. So a menu bar might be the nicest way to deal with this. > - And speaking of the menu bar, another possibility is to use a > mouse-click menu, e.g. when the user, say, right-clicks on the image, > a menu with the save/load/close options would pop up. For frequent > users of TheMatrix, this might be popular. > > I added the file ButtonTest into your developer package on CVS with a > few more test rungs, including a few comments. I also add the method > "enableAllButtons" to TheButtonMatrix. > > Toby > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > csjava-developer mailing list > csj...@li... > https://lists.sourceforge.net/lists/listinfo/csjava-developer > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.14 - Release Date: 20/05/05 |
From: Toby D. <tj...@sf...> - 2005-05-20 07:30:22
|
Hi all, I've just gone through and removed all the image scaling code from TheMatrix. It should work the same as before, except now you can't scale images. Everyone should update their local right away, since there are many small changes scattered throughout the project. Alex and Daryl: I also modified your extended versions of TheMatrix to remove the scaling code in them. They should work the same, but be sure to get the updated versions as soon as possible. Toby |
From: Toby D. <tj...@sf...> - 2005-05-20 06:28:23
|
Daryl, I've been looking at TheButtonMatrix, and I think it's nearly read to add to TheMatrix. An essential fix is needed, though: - The image is not correctly set in the frame. The bottom of the frame is too low, and so a gray line is visible. Also, the right side of the entire image is apparently covered by the button panel. The image must appear precisely in the frame, with no excess space or overlapping. In addition, there are some possible improvements that would probably make it better, although we can live without them: - The button panel background is big, gray, and unappealing. Can it be white instead? Can a method to set the button panel background be added? - When the button panel is put on the left side of the image, the right edge of the buttons is ragged because the buttons are not the same width. This looks messy and should be fixed, i.e. the buttons should be made the same width. - After seeing the button panels, I think a menu bar with a menu containing the save/load/close features would probably look nicer. For beginners, having the buttons right on the screen where they can see them is good, because then they don't need to hunt around or guess what features are available. But there is so much unused space, that after a while I suspect many users will find that to be a bit of an eyesore. So a menu bar might be the nicest way to deal with this. - And speaking of the menu bar, another possibility is to use a mouse-click menu, e.g. when the user, say, right-clicks on the image, a menu with the save/load/close options would pop up. For frequent users of TheMatrix, this might be popular. I added the file ButtonTest into your developer package on CVS with a few more test rungs, including a few comments. I also add the method "enableAllButtons" to TheButtonMatrix. Toby |
From: <he...@sf...> - 2005-05-20 04:09:12
|
/* Attention to owner of getimage() in TheMatrix*/ Hi! I am working on the RIGHT way to test getimage(). When I do testing do I just compare the bufferedImage line2 only , should I consider line 1? Also I updated the testgetimage() code, something odd, equality failed when I compare only line2. Even when println returns the same result??? Example: Comparing only without "BufferedImage@e2cb55:" @e2cb55 is the buffered image's memory location right? If I only use m.getImage().getdata() then I just receive line2's info, so if I required to compare A's line 1&2 with B'line1&2 in order to proove the two image are equal, then getdata is insufficient(imcomplete), because it left out some data. Image A => System.out.println(m.getImage().toString()); Line1: BufferedImage@e2cb55: type = 1 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0 Line2: IntegerInterleavedRaster: width = 75 height = 75 #Bands = 3 xOff = 0 yOff = 0 dataOffset[0] 0 Image B => System.out.println(bufferedImage.toString()); Line 1: BufferedImage@19360e2: type = 1 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0 Line2: IntegerInterleavedRaster: width = 75 height = 75 #Bands = 3 xOff = 0 yOff = 0 dataOffset[0] 0 In sum, let's recap. the problem: compare line 2 only to proove two buffered image equal? Yes (error) or No (.tostring and stringtokenizer consideration)? Thanks you for your time. best wishes, Henry Chan |
From: <he...@sf...> - 2005-05-20 04:01:09
|
/* Attention to owner of getimage() in TheMatrix*/ Hi! I am working on the RIGHT way to test getimage(). When I do testing do I just compare the bufferedImage line2 only , should I consider line 1? Example: "BufferedImage@e2cb55:" @e2cb55 is the buffered image's memory location right? If I only use m.getImage().getdata() then I just receive line2's info, so if I required to compare A's line 1&2 with B'line1&2 in order to proove the two image are equal, then getdata is insufficient(imcomplete), because it left out some data. /* Attention to owner of getimage() in TheMatrix*/ Hi! I am working on the RIGHT way to test getimage(). When I do testing do I just compare the bufferedImage line2 only , should I consider line 1? Also I updated the testgetimage() code, something odd, equality failed when I compare only line2. Even when println returns the same result??? Example: Comparing only without "BufferedImage@e2cb55:" @e2cb55 is the buffered image's memory location right? If I only use m.getImage().getdata() then I just receive line2's info, so if I required to compare A's line 1&2 with B'line1&2 in order to proove the two image are equal, then getdata is insufficient(imcomplete), because it left out some data. Image A => System.out.println(m.getImage().toString()); Line1: BufferedImage@e2cb55: type = 1 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0 Line2: IntegerInterleavedRaster: width = 75 height = 75 #Bands = 3 xOff = 0 yOff = 0 dataOffset[0] 0 Image B => System.out.println(bufferedImage.toString()); Line 1: BufferedImage@19360e2: type = 1 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0 Line2: IntegerInterleavedRaster: width = 75 height = 75 #Bands = 3 xOff = 0 yOff = 0 dataOffset[0] 0 In sum, let's recap. the problem: compare line 2 only to proove two buffered image equal? Yes (error) or No (.tostring and stringtokenizer consideration)? Thanks you for your time. best wishes, Henry Chan Computer Science Major Simon Fraser University |