Autor Beitrag
jackie05
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 357



BeitragVerfasst: Do 05.08.10 07:57 
Hallo,
wie kann ich in Delphi ein 2 Dimensionales Array um 90 Grad drehen?
Ich habe schon bei google oder hier im Forum nach meinem problem gesucht, leider finde ich nix passendes.

Danke euch schonmal für die antwort.

MfG
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Do 05.08.10 08:17 
Hallo!

Im Prinzip musst du nur alle [i, j] mit [j, i] oberhalb der Hauptdiagonale tauschen - vorausgesetzt, es handelt sich um ein "quadratisches" Array. Ansonsten ändern sich nämlich die Dimensionen und du musst ein neues Array anlegen.

AXMD
kompas
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44



BeitragVerfasst: Do 05.08.10 18:23 
hallo jackie05!

Dein 2 Dimensionales Array, ist dies nicht in einem zuffal eher ein Bitmap gennant?
denn so versteh ich die frage besser (denn eine bitmap dies ist ja klar, dies gehöhrt zu der 2D, denn es ist ein Bild, also höhe und breite).

also hier, ein link.
stackoverflow.com/qu...ting-bitmaps-in-code

und so antworte mal, ob dies mehr zu deine Frage geht.
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 05.08.10 18:26 
Meinst du 90 drehen oder transponieren?