Thema: Delphi Größe in TImage

Einzelnen Beitrag anzeigen

danten

Registriert seit: 19. Feb 2012
Ort: Czech Republic, Prag
126 Beiträge
 
Delphi 10.1 Berlin Architect
 
#8

AW: Größe in TImage

  Alt 19. Feb 2012, 13:40
Ahoj

Creating a project in which the user can draw a picture to RichEdit.
The position of "Row" and "Count" is automatically created to the page Paintbox.
At this Paintbox user will draw. Once you finish drawing and clicks the "Enter", so I need to crop the image automatically and only the coordinates, where an image and discard the rest.
It is unnecessary to file a 100 x 100 pixel screen takes up the size as 800 x 600 pixels.

Trying to get coordinates Mouse_Min_Top, Mouse_Max_Top, Mouse_Min_Left, Mouse_Max_left.
Once I know these coordinates, the problem is not crop the image.

Please show a little code.
Thank you very much
Daniel

Geändert von danten (19. Feb 2012 um 13:43 Uhr)
  Mit Zitat antworten Zitat