UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Cropping Images    
 
   
DanielPineault
post Dec 6 2016, 02:32 PM
Post#1


UtterAccess VIP
Posts: 5,453
Joined: 30-June 11



Does anyone know how Access can interact with images without requiring using a separate application.

Basically what I'm after is a way for my user to select an image (this is already done, no issue here), and then allow them to select a region within the image to crop it and then save it (the newly cropped image) under a name I specify so it can be linked to a record. It the type of functionality we all know from numerous websites, etc.

Thank you for any ideas!

--------------------
Daniel Pineault (2010-2017 Microsoft MVP)
Professional Help: http://www.cardaconsultants.com
Free MS Access Code, Tips, Tricks and Samples: http://www.devhut.net

* Design should never say "Look at me". It should always say "Look at this". -- David Craib
* A user interface is like a joke, if you have to explain it, it's not that good! -- Martin LeBlanc


All code samples, demonstration databases, links,... are provided 'AS IS' and are to be used at your own risk! Take the necessary steps to check, validate ...
Go to the top of the page
 
doctor9
post Dec 6 2016, 02:53 PM
Post#2


UtterAccess Editor
Posts: 17,924
Joined: 29-March 05
From: Wisconsin


Daniel,

I'd look into a graphics-based add-in for Access, I suppose. Access isn't really designed to handle reading mutltiple image file types, or selecting areas of an image and creating a new image from that selection. What you're describing can be done very easily in Windows' Paint program. If the user already knows where the image is, and how they want to crop it, why not have them do it with a tool that's already designed for that? After they crop and re-save the new image, they can select the already-cropped image to be linked to the new record.

Hope this helps,

Dennis

--------------------
(;,;) Li'l Cthulu says: Please talk about what you're trying to do, as well as how you're doing it.
Changing your real table name to "Table1" and your real form name to "Form1" in your posts makes it more difficult to understand what's going on, not easier.
Guidelines for Posting Questions
Go to the top of the page
 
DanielPineault
post Dec 6 2016, 03:33 PM
Post#3


UtterAccess VIP
Posts: 5,453
Joined: 30-June 11



QUOTE
What you're describing can be done very easily in Windows' Paint program. If the user already knows where the image is, and how they want to crop it, why not have them do it with a tool that's already designed for that? After they crop and re-save the new image, they can select the already-cropped image to be linked to the new record.

Yes, I know, but this mean going back and forth and not all users are tech savvy enough to even launch paint, perform the crop, NOT overwrite the source file, return to the db and link the newly created file. I was hoping for a simple solution. One of these hope for an easy solution all integrated in Access and in which the user never performed the save action themselves, but realize probably not going to happen.

--------------------
Daniel Pineault (2010-2017 Microsoft MVP)
Professional Help: http://www.cardaconsultants.com
Free MS Access Code, Tips, Tricks and Samples: http://www.devhut.net

* Design should never say "Look at me". It should always say "Look at this". -- David Craib
* A user interface is like a joke, if you have to explain it, it's not that good! -- Martin LeBlanc


All code samples, demonstration databases, links,... are provided 'AS IS' and are to be used at your own risk! Take the necessary steps to check, validate ...
Go to the top of the page
 
TheSmileyCoder
post Dec 7 2016, 05:01 PM
Post#4


UtterAccess VIP
Posts: 1,506
Joined: 19-January 12
From: Denmark, Copenhagen


You should be able to do the cropping and saving with API calls to GDI+

However, as for determining the crop "size" and position, you would need to code that yourself. I am thinking a box on top of an image control.

That said, its no small task to work with GDI+ and before going down that route, I would seriously look to see if a third party addin has the required functionality built in.

--------------------
TheSmileyCoder // Anders Ebro (Access MVP)

~~~~~~~~
Blog: www.TheSmileyCoder.com
YouTube Channel: TheSmileyCoder
Go to the top of the page
 
DanielPineault
post Dec 9 2016, 01:14 PM
Post#5


UtterAccess VIP
Posts: 5,453
Joined: 30-June 11



Thanks Anders for pointing me in the right direction. I'll do some digging and see what I can come up with.

This has now turned into a personal challenge more than anything else! ohyeah.gif

--------------------
Daniel Pineault (2010-2017 Microsoft MVP)
Professional Help: http://www.cardaconsultants.com
Free MS Access Code, Tips, Tricks and Samples: http://www.devhut.net

* Design should never say "Look at me". It should always say "Look at this". -- David Craib
* A user interface is like a joke, if you have to explain it, it's not that good! -- Martin LeBlanc


All code samples, demonstration databases, links,... are provided 'AS IS' and are to be used at your own risk! Take the necessary steps to check, validate ...
Go to the top of the page
 


Custom Search
RSSSearch   Top   Lo-Fi    17th December 2017 - 05:04 AM