crop an Image

Re: crop an Image

Postby Silvio.Falconi » Tue Oct 31, 2017 10:46 am

Uwe see my test
I wish draw a box dotted directly on oImage and save the box dotted into oImageCropped control
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: crop an Image

Postby Marc Venken » Tue Oct 31, 2017 11:07 am

Are the cropped and/or resized images of the same quality as the original (Pixels) ? A 300 Pix stays 300 Pix

In the topic it say it does, but was FWH not loosing quality with saving images ?
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1343
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: crop an Image

Postby Silvio.Falconi » Tue Oct 31, 2017 5:04 pm

Now Run ok . only I not Know how zoom the image cropped ...Someone can found an help for me ?


step 1
select a file to crop

Image


step 2
crop the part of image

Image

step 3
copy the image cropped on memory ( save the file cropped)

Image

step 4
erase the object to crop ( I use tgroup control)

Image

step 5
I return back, I can cropped another part of image or close the procedure

Image


the problems
1. I use tgroup control to create box , good could be draw a box dotted with the mouse
2. when I change the size of tgroup not refresh and the it is not transparent see pic2 and pic 3
3. when I save the image cropped it must del the object but I not found a solution , then I must press canc button on my keyboard
4. when I crop the image I wish zoom the image cropped . I tried also inserting oImageCropped:nZoom:= 2 before the save of imagecropped but it not run ok it draw a black space ..how I can zoom it ?


I hope there is one can help me
thanks in advane
Last edited by Silvio.Falconi on Tue Nov 07, 2017 10:24 am, edited 1 time in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: crop an Image

Postby Silvio.Falconi » Wed Nov 01, 2017 5:19 pm

New release !!!!!!!!!!!!


Image


Now you can draw a Box dotted directly on the image with the mouse , when you draw the box it crop the image

Any help for the zoom ?
Last edited by Silvio.Falconi on Tue Nov 07, 2017 10:24 am, edited 1 time in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: crop an Image

Postby Silvio.Falconi » Thu Nov 02, 2017 8:49 am

IF I SCROLL the image the coordinates are not refresh not

and when I select with mouse the procedure give me the initials coordinates

how update the coordinates ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: crop an Image

Postby ukoenig » Thu Nov 02, 2017 11:08 am

Silvio,

if You click on the same position, You don't get the real image-position from top / left after scrolling.
It will be always the position from < @ 0, 0 IMAGE oImage SIZE 280, 200 OF oCattura SCROLL >

see the results

most top / left

Image

after scrolling the same values started from 0, 0 on NOT top / left of the image.

Image

regards
Uwe :(
Last edited by ukoenig on Thu Nov 02, 2017 7:32 pm, edited 7 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: crop an Image

Postby Silvio.Falconi » Thu Nov 02, 2017 11:11 am

right how I can resolve it ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: crop an Image

Postby Silvio.Falconi » Thu Nov 02, 2017 11:18 am

when I save the image sometimes it crash

Called from DIBWRITE(0)
Called from TIMAGE:SAVEIMAGE(191) in .\source\classes\IMAGE.PRG
Called from CROP_IMAGE(161) in test.prg
Called from MOUSEMOVE(144) in test.prg
Called from (b)GETIMAGE(104) in test.prg
Called from TWINDOW:MOUSEMOVE(3054) in .\source\classes\WINDOW.PRG
Called from TIMAGE:MOUSEMOVE(767) in .\source\classes\CONTROL.PRG
Called from TWINDOW:HANDLEEVENT(0)


or cropimage function not run ok

Code: Select all  Expand view


Application Internal Error - C:\work\errori\crop_mouse\test.Exe
Terminated at: 2017-11-02 12:14:57
Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:0045055B
    EAX:00000000  EBX:00000000  ECX:744A4409  EDX:00000000
    ESI:00000000  EDI:005E10F4  EBP:0019EDB4
    CS:EIP:0023:0045055B  SS:ESP:002B:0019ED94
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010246
    Exception Parameters: 00000000 00000000
    CS:EIP: 8B 13 03 D3 03 C2 89 45 FC 53 E8 94 E2 11 00 8B
    SS:ESP: 005E10F4 00000000 0074A738 00000093 02A3D4FC 0019EDBC 004D59B9 00DFC064 0019EDD4 004505E1 00000000 0019EDD0 005E10F4 00000000 0074A738 00000001

    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...
    0045055B 0019EDB4   0019EDD4 004505E1 00000000 0019EDD0 005E10F4 00000000 0074A738 00000001
    004505E1 0019EDD4   0019EDE4 0045064A 02A71E14 00000000
    0045064A 0019EDE4   0019EE00 004BE1D0 00000061 00000000 00D4AAD4 00000000 00000000
    004BE1D0 0019EE00   0019EF14 004B7F57 00000002 0057092D 00000000 005702A0 767098BB 00000000 0019EE54 766E518B
    004B7F57 0019EF14   0019EF24 0042AAED 005E10CD 005E02B4
    0042AAED 0019EF24   0019EF44 004BE38D 0074A738 0000005D 00000000 00D4AAD4 0261000A 000000BF
    004BE38D 0019EF44   0019F058 004B8098 00000002 005708BE 00000000 0074A738 011E6A00 00000000 00000000 011E6A00
    004B8098 0019F058   0019F068 0040152D 005708ED 00570000
    0040152D 0019F068   0019F084 004BE1D0 00000057 00000000 00D4AAD4 00000000 000000A1
    004BE1D0 0019F084   0019F198 004B7F57 00000002 005707FC 00000000 0074A738 00699394 0019F098 00000000 00DFF7B4
    004B7F57 0019F198   0019F1A8 004014FD 00570882 00570000
    004014FD 0019F1A8   0019F1C4 004BE1D0 00000052 00000000 00000000 00000000 00000090
    004BE1D0 0019F1C4   0019F2D8 004B7FDA 00000004 0074A738 FFFFFFFE 00D4B63C 00000000 00699DF4 0019F218 0019F1F4
    004B7FDA 0019F2D8   0019F310 004BE549 005707F1 00570000 006A1E55 00000000 00697D54 004BE38D 0074A738 0000004D
    004BE549 0019F310   0019F424 004B8098 00000003 005A490E 00000000 005A22F4 00DD14DC 02A73194 02A73194 0019F340
    004B8098 0019F424   0019F434 00433894 006A1D88 00697AE4
    00433894 0019F434   0019F454 004BE38D 0074A738 00000043 00000000 00D47374 01370005 00000BEE
    004BE38D 0019F454   0019F568 004B8098 00000003 00000001 00000000 005832A8 011E6CB0 01800009 6E010000 00000007
    004B8098 0019F568   0019F578 00427298 005A4629 005A1674
    00427298 0019F578   0019F598 004BE280 00E80122 0000003E 00000000 00D6CD3C 0137000A 000002FF


Modules:
00400000 00377000 C:\work\errori\crop_mouse\test.Exe
77890000 0018E000 C:\WINDOWS\SYSTEM32\ntdll.dll
74450000 000D0000 C:\WINDOWS\System32\KERNEL32.DLL
75C20000 001C2000 C:\WINDOWS\System32\KERNELBASE.dll
75EA0000 00077000 C:\WINDOWS\System32\ADVAPI32.DLL
75B10000 000BD000 C:\WINDOWS\System32\msvcrt.dll
75BD0000 00041000 C:\WINDOWS\System32\sechost.dll
74520000 000C0000 C:\WINDOWS\System32\RPCRT4.dll
74360000 00020000 C:\WINDOWS\System32\SspiCli.dll
74350000 0000A000 C:\WINDOWS\System32\CRYPTBASE.dll
75DF0000 00057000 C:\WINDOWS\System32\bcryptPrimitives.dll
75F20000 000EF000 C:\WINDOWS\System32\COMDLG32.DLL
77650000 00238000 C:\WINDOWS\System32\combase.dll
759F0000 00118000 C:\WINDOWS\System32\ucrtbase.dll
75960000 0008C000 C:\WINDOWS\System32\shcore.dll
6AF90000 0006E000 C:\WINDOWS\SYSTEM32\WINSPOOL.DRV
73B30000 00008000 C:\WINDOWS\SYSTEM32\VERSION.DLL
6F220000 0008E000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.15063.413_none_55bc94a37c2a2854\COMCTL32.DLL
77190000 0013C000 C:\WINDOWS\System32\USER32.dll
775C0000 00016000 C:\WINDOWS\System32\win32u.dll
76BD0000 00021000 C:\WINDOWS\System32\GDI32.dll
76650000 00158000 C:\WINDOWS\System32\gdi32full.dll
76FD0000 00045000 C:\WINDOWS\System32\SHLWAPI.dll
77020000 00079000 C:\WINDOWS\System32\msvcp_win.dll
745F0000 01348000 C:\WINDOWS\System32\SHELL32.dll
73A10000 00018000 C:\WINDOWS\SYSTEM32\bcrypt.dll
76C00000 00039000 C:\WINDOWS\System32\cfgmgr32.dll
760C0000 00584000 C:\WINDOWS\System32\windows.storage.dll
75E50000 0000E000 C:\WINDOWS\System32\kernel.appcore.dll
77600000 00045000 C:\WINDOWS\System32\powrprof.dll
745E0000 00010000 C:\WINDOWS\System32\profapi.dll
77420000 000F3000 C:\WINDOWS\System32\OLE32.DLL
77520000 00096000 C:\WINDOWS\System32\OLEAUT32.DLL
739D0000 00006000 C:\WINDOWS\SYSTEM32\MSIMG32.DLL
74030000 00166000 C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.15063.483_none_9e9856e456d5e776\GDIPLUS.DLL
6B910000 00025000 C:\WINDOWS\SYSTEM32\OLEDLG.DLL
75E70000 00025000 C:\WINDOWS\System32\IMM32.DLL
73AB0000 00078000 C:\WINDOWS\system32\uxtheme.dll
772D0000 00146000 C:\WINDOWS\System32\MSCTF.dll
71BD0000 00023000 C:\WINDOWS\system32\dwmapi.dll
73E10000 0020E000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.15063.483_none_6dad63fefc436da8\comctl32.DLL
73560000 00067000 C:\WINDOWS\System32\TextInputFramework.dll
6F3F0000 00227000 C:\WINDOWS\System32\CoreUIComponents.dll
6F360000 0008F000 C:\WINDOWS\System32\CoreMessaging.dll
739E0000 00028000 C:\WINDOWS\SYSTEM32\ntmarta.dll
73A80000 00010000 C:\WINDOWS\SYSTEM32\usermgrcli.dll
6FDF0000 000D1000 C:\WINDOWS\SYSTEM32\wintypes.dll
77100000 00083000 C:\WINDOWS\System32\clbcatq.dll
6B5C0000 00080000 C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll
6BF10000 0003C000 C:\WINDOWS\SYSTEM32\edputil.dll
68FD0000 0043A000 C:\WINDOWS\system32\explorerframe.dll
69DC0000 0016D000 C:\WINDOWS\system32\DUI70.dll
6B370000 0007A000 C:\WINDOWS\system32\DUser.dll
6CD00000 00172000 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
6B570000 00047000 C:\Windows\System32\thumbcache.dll
6E5F0000 00043000 C:\WINDOWS\system32\dataexchange.dll
6E2A0000 000EB000 C:\WINDOWS\system32\dcomp.dll
6E390000 00252000 C:\WINDOWS\system32\d3d11.dll
6E210000 0008A000 C:\WINDOWS\system32\dxgi.dll
6FA70000 00136000 C:\WINDOWS\system32\twinapi.appcore.dll
6A580000 00132000 C:\Windows\System32\Windows.Globalization.dll
6B250000 00050000 C:\Windows\System32\Bcp47Langs.dll
6B340000 00024000 C:\WINDOWS\SYSTEM32\globinputhost.dll
73660000 00164000 C:\WINDOWS\SYSTEM32\PROPSYS.dll
6AF30000 00056000 C:\WINDOWS\system32\OLEACC.dll
73190000 00169000 C:\Windows\System32\uiautomationcore.dll
735D0000 00086000 C:\WINDOWS\SYSTEM32\sxs.dll
6B900000 0000C000 C:\WINDOWS\SYSTEM32\atlthunk.dll
6B2B0000 00089000 C:\WINDOWS\System32\StructuredQuery.dll
6B940000 003FE000 C:\Windows\System32\Windows.StateRepository.dll
734B0000 00087000 C:\Windows\System32\StateRepository.Core.dll
66090000 000AC000 C:\WINDOWS\system32\Windows.Storage.Search.dll
76010000 0005E000 C:\WINDOWS\System32\coml2.dll
682D0000 00278000 C:\Windows\System32\OneCoreUAPCommonProxyStub.dll
6B8F0000 0000D000 C:\WINDOWS\SYSTEM32\LINKINFO.dll
66020000 0006E000 C:\Windows\System32\twinapi.dll
65F40000 000D4000 C:\Windows\System32\MrmCoreR.dll
72DD0000 0019B000 C:\WINDOWS\SYSTEM32\urlmon.dll
72BB0000 00212000 C:\Windows\System32\iertutil.dll
70540000 00024000 C:\WINDOWS\system32\WINMM.dll
702D0000 00023000 C:\WINDOWS\SYSTEM32\winmmbase.dll
69500000 00044000 C:\Windows\System32\ActXPrxy.dll
65ED0000 00064000 C:\WINDOWS\SYSTEM32\policymanager.dll
6F860000 00066000 C:\WINDOWS\SYSTEM32\msvcp110_win.dll
72FF0000 00093000 C:\WINDOWS\SYSTEM32\apphelp.dll
657B0000 0027F000 C:\Users\admin\AppData\Local\Microsoft\OneDrive\17.3.7074.1023\FileSyncShell.dll
73B40000 002C1000 C:\WINDOWS\SYSTEM32\WININET.dll
69DA0000 00012000 C:\WINDOWS\system32\mssprxy.dll
65680000 00124000 C:\WINDOWS\system32\NetworkExplorer.dll
10000000 00200000 C:\work\errori\crop_mouse\freeimage.dll

Called from DIBWRITE(0)
Called from TIMAGE:SAVEIMAGE(191) in .\source\classes\IMAGE.PRG
Called from CROP_IMAGE(161) in test.prg
Called from MOUSEMOVE(144) in test.prg
Called from (b)GETIMAGE(104) in test.prg
Called from TWINDOW:MOUSEMOVE(3054) in .\source\classes\WINDOW.PRG
Called from TIMAGE:MOUSEMOVE(767) in .\source\classes\CONTROL.PRG
Called from TWINDOW:HANDLEEVENT(0)
Called from TCONTROL:HANDLEEVENT(1731) in .\source\classes\CONTROL.PRG
Called from TIMAGE:HANDLEEVENT(558) in .\source\classes\BITMAP.PRG
Called from _FWH(3348) in .\source\classes\WINDOW.PRG
Called from DIALOGBOXINDIRECT(0)
Called from TDIALOG:ACTIVATE(296) in .\source\classes\DIALOG.PRG
Called from TESTCROP(79) in test.prg
------------------------------------------------------------------------
Application Internal Error - C:\work\errori\crop_mouse\test.Exe
Terminated at: 2017-11-02 12:15:28
Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:0045055B
    EAX:00000000  EBX:00000000  ECX:744A4409  EDX:00000000
    ESI:00000000  EDI:005E10F4  EBP:0019EDB4
    CS:EIP:0023:0045055B  SS:ESP:002B:0019ED94
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010246
    Exception Parameters: 00000000 00000000
    CS:EIP: 8B 13 03 D3 03 C2 89 45 FC 53 E8 94 E2 11 00 8B
    SS:ESP: 005E10F4 00000000 0074A738 00000093 025B90D4 0019EDBC 004D59B9 0255FFBC 0019EDD4 004505E1 00000000 0019EDD0 005E10F4 00000000 0074A738 00000001

    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...
    0045055B 0019EDB4   0019EDD4 004505E1 00000000 0019EDD0 005E10F4 00000000 0074A738 00000001
    004505E1 0019EDD4   0019EDE4 0045064A 04F3A0D4 00000000
    0045064A 0019EDE4   0019EE00 004BE1D0 00000061 00000000 00A5AAD4 00000000 00000000
    004BE1D0 0019EE00   0019EF14 004B7F57 00000002 0057092D 00000000 005702A0 767098BB 00000000 0019EE54 766E518B
    004B7F57 0019EF14   0019EF24 0042AAED 005E10CD 005E02B4
    0042AAED 0019EF24   0019EF44 004BE38D 0074A738 0000005D 00000000 00A5AAD4 0261000A 000000BF
    004BE38D 0019EF44   0019F058 004B8098 00000002 005708BE 00000000 0074A738 00000165 0019EF84 0019EF78 004CE66D
    004B8098 0019F058   0019F068 0040152D 005708ED 00570000
    0040152D 0019F068   0019F084 004BE1D0 00000057 00000000 00A5AAD4 00000000 000000A1
    004BE1D0 0019F084   0019F198 004B7F57 00000002 005707FC 00000000 0074A738 00699394 0019F098 00000000 004CE66D
    004B7F57 0019F198   0019F1A8 004014FD 00570882 00570000
    004014FD 0019F1A8   0019F1C4 004BE1D0 00000052 00000000 00000000 00000000 00000090
    004BE1D0 0019F1C4   0019F2D8 004B7FDA 00000004 0074A738 FFFFFFFE 00A5B63C 00000000 00699DF4 0019F1F8 004CE66D
    004B7FDA 0019F2D8   0019F310 004BE549 005707F1 00570000 006A1E55 00000000 00697D54 004BE38D 0074A738 0000004D
    004BE549 0019F310   0019F424 004B8098 00000003 005A490E 00000000 005A22F4 025314DC 04F39C7C 04F39C7C 00000000
    004B8098 0019F424   0019F434 00433894 006A1D88 00697AE4
    00433894 0019F434   0019F454 004BE38D 0074A738 00000043 00000000 00A57374 01370005 00000BEE
    004BE38D 0019F454   0019F568 004B8098 00000003 00000001 00000000 005832A8 0019F494 0019F484 004CE66D 00000000
    004B8098 0019F568   0019F578 00427298 005A4629 005A1674
    00427298 0019F578   0019F598 004BE280 0163017E 0000003E 00000000 00A7CD3C 0137000A 000002FF


Modules:
00400000 00377000 C:\work\errori\crop_mouse\test.Exe
77890000 0018E000 C:\WINDOWS\SYSTEM32\ntdll.dll
74450000 000D0000 C:\WINDOWS\System32\KERNEL32.DLL
75C20000 001C2000 C:\WINDOWS\System32\KERNELBASE.dll
75EA0000 00077000 C:\WINDOWS\System32\ADVAPI32.DLL
75B10000 000BD000 C:\WINDOWS\System32\msvcrt.dll
75BD0000 00041000 C:\WINDOWS\System32\sechost.dll
74520000 000C0000 C:\WINDOWS\System32\RPCRT4.dll
74360000 00020000 C:\WINDOWS\System32\SspiCli.dll
74350000 0000A000 C:\WINDOWS\System32\CRYPTBASE.dll
75DF0000 00057000 C:\WINDOWS\System32\bcryptPrimitives.dll
75F20000 000EF000 C:\WINDOWS\System32\COMDLG32.DLL
77650000 00238000 C:\WINDOWS\System32\combase.dll
759F0000 00118000 C:\WINDOWS\System32\ucrtbase.dll
75960000 0008C000 C:\WINDOWS\System32\shcore.dll
6AF90000 0006E000 C:\WINDOWS\SYSTEM32\WINSPOOL.DRV
73B30000 00008000 C:\WINDOWS\SYSTEM32\VERSION.DLL
77190000 0013C000 C:\WINDOWS\System32\USER32.dll
6F220000 0008E000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.15063.413_none_55bc94a37c2a2854\COMCTL32.DLL
775C0000 00016000 C:\WINDOWS\System32\win32u.dll
76BD0000 00021000 C:\WINDOWS\System32\GDI32.dll
76FD0000 00045000 C:\WINDOWS\System32\SHLWAPI.dll
76650000 00158000 C:\WINDOWS\System32\gdi32full.dll
745F0000 01348000 C:\WINDOWS\System32\SHELL32.dll
77020000 00079000 C:\WINDOWS\System32\msvcp_win.dll
76C00000 00039000 C:\WINDOWS\System32\cfgmgr32.dll
73A10000 00018000 C:\WINDOWS\SYSTEM32\bcrypt.dll
760C0000 00584000 C:\WINDOWS\System32\windows.storage.dll
75E50000 0000E000 C:\WINDOWS\System32\kernel.appcore.dll
77600000 00045000 C:\WINDOWS\System32\powrprof.dll
745E0000 00010000 C:\WINDOWS\System32\profapi.dll
77420000 000F3000 C:\WINDOWS\System32\OLE32.DLL
77520000 00096000 C:\WINDOWS\System32\OLEAUT32.DLL
739D0000 00006000 C:\WINDOWS\SYSTEM32\MSIMG32.DLL
6B910000 00025000 C:\WINDOWS\SYSTEM32\OLEDLG.DLL
74030000 00166000 C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.15063.483_none_9e9856e456d5e776\GDIPLUS.DLL
75E70000 00025000 C:\WINDOWS\System32\IMM32.DLL
73AB0000 00078000 C:\WINDOWS\system32\uxtheme.dll
772D0000 00146000 C:\WINDOWS\System32\MSCTF.dll
71BD0000 00023000 C:\WINDOWS\system32\dwmapi.dll
73E10000 0020E000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.15063.483_none_6dad63fefc436da8\comctl32.DLL
73560000 00067000 C:\WINDOWS\System32\TextInputFramework.dll
6F360000 0008F000 C:\WINDOWS\System32\CoreMessaging.dll
6F3F0000 00227000 C:\WINDOWS\System32\CoreUIComponents.dll
739E0000 00028000 C:\WINDOWS\SYSTEM32\ntmarta.dll
73A80000 00010000 C:\WINDOWS\SYSTEM32\usermgrcli.dll
6FDF0000 000D1000 C:\WINDOWS\SYSTEM32\wintypes.dll
77100000 00083000 C:\WINDOWS\System32\clbcatq.dll
6B5C0000 00080000 C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll
6BF10000 0003C000 C:\WINDOWS\SYSTEM32\edputil.dll
68FD0000 0043A000 C:\WINDOWS\system32\explorerframe.dll
69DC0000 0016D000 C:\WINDOWS\system32\DUI70.dll
6B370000 0007A000 C:\WINDOWS\system32\DUser.dll
6CD00000 00172000 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
6B570000 00047000 C:\Windows\System32\thumbcache.dll
6E5F0000 00043000 C:\WINDOWS\system32\dataexchange.dll
6E390000 00252000 C:\WINDOWS\system32\d3d11.dll
6E2A0000 000EB000 C:\WINDOWS\system32\dcomp.dll
6E210000 0008A000 C:\WINDOWS\system32\dxgi.dll
6FA70000 00136000 C:\WINDOWS\system32\twinapi.appcore.dll
6A580000 00132000 C:\Windows\System32\Windows.Globalization.dll
6B250000 00050000 C:\Windows\System32\Bcp47Langs.dll
6B340000 00024000 C:\WINDOWS\SYSTEM32\globinputhost.dll
73660000 00164000 C:\WINDOWS\SYSTEM32\PROPSYS.dll
6AF30000 00056000 C:\WINDOWS\system32\OLEACC.dll
73190000 00169000 C:\Windows\System32\uiautomationcore.dll
735D0000 00086000 C:\WINDOWS\SYSTEM32\sxs.dll
6B900000 0000C000 C:\WINDOWS\SYSTEM32\atlthunk.dll
6B2B0000 00089000 C:\WINDOWS\System32\StructuredQuery.dll
6B940000 003FE000 C:\Windows\System32\Windows.StateRepository.dll
734B0000 00087000 C:\Windows\System32\StateRepository.Core.dll
66090000 000AC000 C:\WINDOWS\system32\Windows.Storage.Search.dll
76010000 0005E000 C:\WINDOWS\System32\coml2.dll
682D0000 00278000 C:\Windows\System32\OneCoreUAPCommonProxyStub.dll
6B8F0000 0000D000 C:\WINDOWS\SYSTEM32\LINKINFO.dll
66020000 0006E000 C:\Windows\System32\twinapi.dll
65F40000 000D4000 C:\Windows\System32\MrmCoreR.dll
72DD0000 0019B000 C:\WINDOWS\SYSTEM32\urlmon.dll
72BB0000 00212000 C:\Windows\System32\iertutil.dll
70540000 00024000 C:\WINDOWS\system32\WINMM.dll
702D0000 00023000 C:\WINDOWS\SYSTEM32\winmmbase.dll
69500000 00044000 C:\Windows\System32\ActXPrxy.dll
65ED0000 00064000 C:\WINDOWS\SYSTEM32\policymanager.dll
6F860000 00066000 C:\WINDOWS\SYSTEM32\msvcp110_win.dll
72FF0000 00093000 C:\WINDOWS\SYSTEM32\apphelp.dll
657B0000 0027F000 C:\Users\admin\AppData\Local\Microsoft\OneDrive\17.3.7074.1023\FileSyncShell.dll
73B40000 002C1000 C:\WINDOWS\SYSTEM32\WININET.dll
69DA0000 00012000 C:\WINDOWS\system32\mssprxy.dll
65680000 00124000 C:\WINDOWS\system32\NetworkExplorer.dll
10000000 00200000 C:\work\errori\crop_mouse\freeimage.dll

Called from DIBWRITE(0)
Called from TIMAGE:SAVEIMAGE(191) in .\source\classes\IMAGE.PRG
Called from CROP_IMAGE(161) in test.prg
Called from MOUSEMOVE(144) in test.prg
Called from (b)GETIMAGE(104) in test.prg
Called from TWINDOW:MOUSEMOVE(3054) in .\source\classes\WINDOW.PRG
Called from TIMAGE:MOUSEMOVE(767) in .\source\classes\CONTROL.PRG
Called from TWINDOW:HANDLEEVENT(0)
Called from TCONTROL:HANDLEEVENT(1731) in .\source\classes\CONTROL.PRG
Called from TIMAGE:HANDLEEVENT(558) in .\source\classes\BITMAP.PRG
Called from _FWH(3348) in .\source\classes\WINDOW.PRG
Called from DIALOGBOXINDIRECT(0)
Called from TDIALOG:ACTIVATE(296) in .\source\classes\DIALOG.PRG
Called from TESTCROP(79) in test.prg
------------------------------------------------------------------------
 
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: crop an Image

Postby ukoenig » Thu Nov 02, 2017 11:28 am

Silvio,

as well I noticed all these problems.

I'm just testing another solution :

1. I scroll to the wanted image-area
2. making a screenshot ( a TEMP-dialog shows the screenshot as a BRUSH )
3. selecting from the TEMP-dialog-background the wanted area.
4. the cropped area can be resized or to a different format-converted.

sounds a little bit complicated :roll:

regards
Uwe :(
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: crop an Image

Postby Silvio.Falconi » Thu Nov 02, 2017 12:34 pm

I tried with :

:ScrollAdjust()
:Refresh( .t. )
:CoorsUpdate()

but not run ok
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: crop an Image

Postby ukoenig » Thu Nov 02, 2017 7:33 pm

Silvio,

my solution seems to work

The image shown at startup ( top = 0, left = 0 )

Image

next moving to the wanted area and choosing the button < create cropped >
a right mouseclick activates the selector.
The selector can include anything that is visible inside the dialog.

Image

the selected area created with zoomfactor 2 and converted to png
a right mouseclick saves the result
a left mouseclick closes the result to select a new area.

Image

still a little bit finetuning needed

regards
Uwe :D
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: crop an Image

Postby Silvio.Falconi » Thu Nov 02, 2017 8:40 pm

on my test the dotted box is drawed on right coordinates , the cropping on bad coordinates .

you solution with tgroup or another control ( es. say) are not good for me because then it is not trasparent and when I size the control( design) thee are lines or zoom of part of background ( brush)

I must insert it on a badge application where the final user can save from a photo the faces of enployers and insert it on badge...if the final user not have a easy procedure to make it it's no good to use
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: crop an Image

Postby Silvio.Falconi » Fri Nov 03, 2017 9:04 am

Image


when with mouse I create the dotted box it create on right coordinates ( green box)

when I call cropimage function it return me bad coordinates . why ? ( red arrow)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: crop an Image

Postby Silvio.Falconi » Fri Nov 03, 2017 9:21 am

resolved now run ok

Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: cmsoft, Google [Bot] and 73 guests