AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Größe in TImage

Ein Thema von danten · begonnen am 19. Feb 2012 · letzter Beitrag vom 19. Feb 2012
Antwort Antwort
Seite 1 von 3  1 23      
danten

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

Größe in TImage

  Alt 19. Feb 2012, 13:18
Bitte entschuldigen Sie mein Deutsch.

Mám vytvořený PaintBox o rozměrech 800 x 600.
Zeichnen Sie das Bild, an dem sie bisher unbekannte Dimensionen.

Ich muss irgendwie bestimmen die minimale und maximale positionieren Sie den Cursor zum Zeitpunkt der Zeichnung, und dann automatisch zuschneiden nur den Teil, der gezeichnet wird.

Vielen Dank
Miniaturansicht angehängter Grafiken
bez-n%E1zvu.png  
Daniel
  Mit Zitat antworten Zitat
Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.298 Beiträge
 
Delphi 12 Athens
 
#2

AW: Größe in TImage

  Alt 19. Feb 2012, 13:28
Hallo danten...

Willkommen, Welcome

Du kannst auch in Englisch schreiben. You also can write in English.

Sometimes it´s enough to use the Google translator. Please use always the same language.



Questions:
- You want to know this Rect ?
- Paint you this Rect by yourself ?
- What you mean with positioning the Cursor ?

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

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

AW: Größe in TImage

  Alt 19. Feb 2012, 13:31
Vielen Dank, aber ich bin aus der Tschechischen Republik und den Google-Übersetzer.
Thank you but I'm from Czech Republic and use the google translator.
Daniel

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

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.298 Beiträge
 
Delphi 12 Athens
 
#4

AW: Größe in TImage

  Alt 19. Feb 2012, 13:36
I think the translation to english is better...

It´s not a Problem... we help you. What about the questions ?
  Mit Zitat antworten Zitat
Benutzerbild von DeddyH
DeddyH

Registriert seit: 17. Sep 2006
Ort: Barchfeld
27.542 Beiträge
 
Delphi 11 Alexandria
 
#5

AW: Größe in TImage

  Alt 19. Feb 2012, 13:37
I think you will have to scan the pixels of the canvas line by line (Canvas.Pixels or ScanLine can be used for this). Then you need to remember the first and the last occurence of a different color, on the X- and on the Y-axis. The resulting rect is limited by these 4 values.
Detlef
"Ich habe Angst vor dem Tag, an dem die Technologie unsere menschlichen Interaktionen übertrumpft. Die Welt wird eine Generation von Idioten bekommen." (Albert Einstein)
Dieser Tag ist längst gekommen
  Mit Zitat antworten Zitat
Popov
(Gast)

n/a Beiträge
 
#6

AW: Größe in TImage

  Alt 19. Feb 2012, 13:38
Dann mal ahoj.
  Mit Zitat antworten Zitat
Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.298 Beiträge
 
Delphi 12 Athens
 
#7

AW: Größe in TImage

  Alt 19. Feb 2012, 13:39
Scanline is faster then Canvas.Pixels
  Mit Zitat antworten Zitat
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
Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.298 Beiträge
 
Delphi 12 Athens
 
#9

AW: Größe in TImage

  Alt 19. Feb 2012, 13:46
Zitat:
the problem is not crop the image.
...ok. Do you want to save the cutted Part to a File ? Which Format ?
  Mit Zitat antworten Zitat
danten

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

AW: Größe in TImage

  Alt 19. Feb 2012, 13:48
BMP please.
Daniel
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 3  1 23      


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:52 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz