myspacee Posted April 23, 2008 Share Posted April 23, 2008 Hello, made a tool that help my office user to snapshot photos and documents, to easily prepare for upload our www site. (dimension are important ) All fine, but now i need to suggest where to click, because introduce resize/crop and i must ovoid counter-effect of this activity. I 've original x,y so i can calc other point to mantain proportions. Is possible to drawn small cross around screen (maybe with some info) and delete them after selection ? Thank you all for any suggestion, m. Link to comment Share on other sites More sharing options...
Zedna Posted April 23, 2008 Share Posted April 23, 2008 Look at my Radar project how to paint small red cross.It's in my signature. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
myspacee Posted April 23, 2008 Author Share Posted April 23, 2008 thank you for reply but,function name and comment are not in englishi so i can't find anything about small cross present in your http://www.autoitscript.com/fileman/users/Zedna/radar.gifCan you add some information, or isolate function?thank you !Myspacee Link to comment Share on other sites More sharing options...
Zedna Posted April 23, 2008 Share Posted April 23, 2008 Can you add some information, or isolate function?Look at Func MalujKriz() ; called after change of pictureMalujKriz menas in English PaintCrossHair Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
myspacee Posted April 24, 2008 Author Share Posted April 24, 2008 thank you but write mu little func #include <WindowsConstants.au3> #include <WinAPI.au3> #Include <GDIPlus.au3> mycross(500,400,20) func mycross($start_x,$start_y,$mylenght) _GDIPlus_Startup () $hDC = _WinAPI_GetWindowDC(0) $hGraphic = _GDIPlus_GraphicsCreateFromHDC($hDC) $Color = 0xFF000000 $hPen = _GDIPlus_PenCreate($Color,2) For $y = 0 to 3000 _GDIPlus_GraphicsDrawLine($hGraphic, $start_x - $mylenght, $start_y, $start_x - 5, $start_y, $hPen) ;orizzontale dx _GDIPlus_GraphicsDrawLine($hGraphic, $start_x + $mylenght , $start_y, $start_x + 5, $start_y, $hPen) ;orizzontale dx _GDIPlus_GraphicsDrawLine($hGraphic, $start_x, $start_y - $mylenght, $start_x, $start_y - 5, $hPen) ;verticale up _GDIPlus_GraphicsDrawLine($hGraphic, $start_x, $start_y + $mylenght, $start_x, $start_y + 5, $hPen) ;verticale down $Color += Hex(2) _GDIPlus_PenSetColor($hPen, $Color) Next _WinAPI_RedrawWindow(_WinAPI_GetDesktopWindow(), 0, 0, $RDW_INVALIDATE+$RDW_ALLCHILDREN) _WinAPI_ReleaseDC(0, $hDC) _GDIPlus_Shutdown() EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now