Sign in to follow this  
Mensana

Zoom in and out of graphics, place little icons on top

Recommended Posts

Hi there,

I was searching for capabilities to zoom in and out on a graphic and my search led me here. I just want to find out is Paint.Net is a library that can help me achive what I want. Here is a brief description of the task:

1. I need to develop a small application designated to conduct a survey of all the workstations in a company. The surveys will be conducted on tablets. Because our expertise is in .NET platform, we need to implement the application for Windows-based tablets;

2. I start with a bunch of floor plans (CAD drawings that can be formated in .bmp, .jpeg, .tiff or any other graphical format you can possibly think off;

3. As the surveyor walks around the offices, following the floor plan that was selected on the tablet, he/she needs to click on the floor plan and through a small form that pops-up, indicate whether the workstation/office that is surveyed was empty or occupied and if it was occupied, whether the person was on the phone, on the computer or in a collaboration. Simple checkboxes.

4. When a workstation was surveyed, I need to place a flag or a letter on top of the floor plan, just to indicate the location as being surveyed (floor plans can have up to 250 workstations and offices, so it's easy to miss some).

5. Because the floor plans tend to be huge, fitting all of the graphic file on the screen of a tablet may render the plan unreadable. So I need to build zoom in , zoom out capabilities. Pinch zoom in/zoom out, the iPad way, would be fantastic, but I need to find out if the tablet (Samsung or HP) supports that. Meanwhile, I can add scroll bars to move different areas of the plan into view and a slide control to zoom in and out.

My questions:

- Does the Paint.NET library have any functionality to allow me to zoom in and out of a graphic?

- Can I add icons (or letters - 'C' for on the computer, 'T' for on the phone, 'X' for empty) on top of the floor plan? I need to place them at the location of a click on the plan (need to get coordinates for that) but also need to memorize them so that if a certain area is taken out of the view and then brought back into view, I need to redraw all the icons/letters so that the surveyor doesn't survey the area again.

- Finally, at the end of the survey I need to print the entire floor plan and add all the icons (or letters) on top of the plan, to give the manager an overview of a snap-shot of the floor at a certain time of the day.

Can I do all these things with Paint.NET?

TIA,

Eddie

Share this post


Link to post
Share on other sites

Paint.NET is not a library, it is an application. The license specifically forbids incorporating any part of it into your own software. Just because it's free doesn't mean it's yours.

Also, this is not a consulting or for-hire forum.

General advice? Read the license for anything you're investigating before spending a whole bunch of time writing up a request like this. I sincerely hope you have a lawyer somewhere who helps you with this stuff and who would've been involved in any requisition process like this.

Share this post


Link to post
Share on other sites

Hi there,

I was searching for capabilities to zoom in and out on a graphic and my search led me here. I just want to find out is Paint.Net is a library that can help me achive what I want. Here is a brief description of the task:

1. I need to develop a small application designated to conduct a survey of all the workstations in a company. The surveys will be conducted on tablets. Because our expertise is in .NET platform, we need to implement the application for Windows-based tablets;

2. I start with a bunch of floor plans (CAD drawings that can be formated in .bmp, .jpeg, .tiff or any other graphical format you can possibly think off;

3. As the surveyor walks around the offices, following the floor plan that was selected on the tablet, he/she needs to click on the floor plan and through a small form that pops-up, indicate whether the workstation/office that is surveyed was empty or occupied and if it was occupied, whether the person was on the phone, on the computer or in a collaboration. Simple checkboxes.

4. When a workstation was surveyed, I need to place a flag or a letter on top of the floor plan, just to indicate the location as being surveyed (floor plans can have up to 250 workstations and offices, so it's easy to miss some).

5. Because the floor plans tend to be huge, fitting all of the graphic file on the screen of a tablet may render the plan unreadable. So I need to build zoom in , zoom out capabilities. Pinch zoom in/zoom out, the iPad way, would be fantastic, but I need to find out if the tablet (Samsung or HP) supports that. Meanwhile, I can add scroll bars to move different areas of the plan into view and a slide control to zoom in and out.

My questions:

- Does the Paint.NET library have any functionality to allow me to zoom in and out of a graphic?

- Can I add icons (or letters - 'C' for on the computer, 'T' for on the phone, 'X' for empty) on top of the floor plan? I need to place them at the location of a click on the plan (need to get coordinates for that) but also need to memorize them so that if a certain area is taken out of the view and then brought back into view, I need to redraw all the icons/letters so that the surveyor doesn't survey the area again.

- Finally, at the end of the survey I need to print the entire floor plan and add all the icons (or letters) on top of the plan, to give the manager an overview of a snap-shot of the floor at a certain time of the day.

Can I do all these things with Paint.NET?

TIA,

Eddie

Share this post


Link to post
Share on other sites

Ok, I got it. I read somewhere else that Paint.NET was recommended for something similar to what I need to do and I thought it is an API.

Your question is completely valid and i think deserves a better answer. Let me put down my coffee and mouse for a second, take a deep breath and realize that just cause I may know something - it doesn't give me a right to respond like a Cretan (though the red bull and late night MW3 sessions have put me in that superior mood). No you don't need a lawyer (really). And no, you didn't request development. Both of those comments were sensitive, childish over-reactions (and so are statements like : "google it", or "this has been posted before", or "it works on my computer" - though i will say they're fun to read).

More than likely, you were directed by some posts on other websites that offer C# advice. And yes people will refer you to Paint.NET when you ask for a C# image editing library. Most people don't know that it is not an SDK. (such as leadtools and gdpicture - they are both very pricey but are royalty free - you only pay once). It would be nice if this was on the front page - but that maybe lost in the 1000 year feature request.

As far as Paint.NET and how it could be used with your application: You could set the default image editor to be Paint.NET. It's free so that makes up for a lot of functionality and integration.

Scripting may be possible in future versions of Paint.NET but no guarantees. There are other paint programs with scripting capabilities (some free; some not) so that's another possibility.

Share this post


Link to post
Share on other sites

Umm, ok ipy12, just who exactly are you? On second thought, don't answer that. It doesn't matter.

Those were not childish comments on my part. The recommendation to have a lawyer is a simple safety net, not a lawsuit threat. Yes, YOU DO NEED A LAWYER. Any time you're using other people's code for your own project which is being used for business (or even if not), YOU NEED A LAWYER. Engineers and developers ARE NOT LAWYERS and should not be making legal decisions without the guidance of A LAWYER. License agreements are legally binding documents that should be parsed by lawyers when it comes to things like this. It's fine to read it yourself to see if you can find anything obvious that will prevent you from legally using it, but once you're past that you need a lawyer.

As far as Paint.NET and how it could be used with your application:

I'll stop you right there. NO. You CANNOT use Paint.NET in "your application." Ever. For anything. Never. "Free to download and use" does not mean it's yours, it doesn't mean you have distribution rights, and it certainly doesn't mean you can just install it along with "your application" and call into it simply because you or your manager are too cheap or lazy or scummy (this last remark is not a dig at Mensana). Paint.NET is licensed for use as an application on its own, and not licensed at all for use by applications.

For being completely stupid and giving advice that could potentially get this guy fired or into legal trouble, you are hereby banned and this thread is closed.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this