Cutting an image

Just starting out? Need help? Post your questions and find answers here.
loulou2522
Enthusiast
Enthusiast
Posts: 552
Joined: Tue Oct 14, 2014 12:09 pm

Cutting an image

Post by loulou2522 »

HI all,
Here is my problem: is it possible in Purebasic to cut an image that is not always positioned in the same place on a page but that has areas above and below it that I would like to eliminate in order to extract only the image itself and not the white parts above and below the image. I can't use GRABImage because I don't know the positioning of the image in the page, which can vary from one image page to another

THanks
User avatar
mk-soft
Always Here
Always Here
Posts: 6253
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Cutting an image

Post by mk-soft »

You will probably have to cut out a large one yourself and then look for the edge.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 560
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Re: Cutting an image

Post by Sicro »

I had once scanned a lot of photos with a scanner and then wrote a tool to cut away the white borders from the photos.
Here I have uploaded it now: Click
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Cutting an image

Post by davido »

@Sicro,
Thank you, very much.

I've been trying to do this for some time without any signs of success! :)
DE AA EB
Post Reply