ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Never used graphics much myself but I know from when learning that Image class allows you to scale up or down an image. There is also another class CropImageFilter that creates a new image cut/cropped from an area in an existing image. So I suppose you could get where the mouse clicked crop an area of the image based on whatever criteria then scale the new image up to whatever size you want which would give the effect of zooming in. There is image filtering available to in the 2D api which I suppose could create a highlight effect but seeing as I can barely draw a matchstick man I haven't looked at all at any of it.
Thats a suggestion anyway, probably better ones...but the ball is rolling.
Looking_Lost, you make that look deceptively easy. Thats great, I can just use an image of the schematic. It will have to be hi res of course, and the monitor sizes may vary, so I'll have to take that into consideration.
I could supply images for say 10 common resolutions, and on startup, the program will choose the correct one.
If you can reccomend a good book for graphics programming (I already have Deitel and Deitels Java Books, as well as Sun Microsystems 'Core Java'), I'd appreciate that too. Knowing where to look is half the battle as they say.
I've been messing about further with it and can at least get a rectangle to appear over specificed areas of the picture when the mouse goes over it, the toughest bit I'm finding is the good old maths, i.e the ratio to the actual size of the area of the picture comapre with the mouse co-ords and when the windows is resized and how it affects it all using only one picture.
I've a horrible feeling I'm trying to reinvent the wheel here and there is a premade class somewhere for imagemapping..but until I find it brute force will prevail
Only book I've got is Mastering Java 2 John Zukowski which while not comprehensive is usually good for pointing you in the right direction.
Maybe somebody will come along who is a bit more in the know about graphics and give you perhaps better pointers.
The algoritm side of things is actually my stronger point. We did all console apps including dsp apps and ASCII games! But I think that even though the idea of Java is that everything is technically done for you, it isn't always worth the search and research, when you can implement it yourself.