Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Prism Drawing.Graphics in Drawing.Bitmap (https://www.delphipraxis.net/36877-drawing-graphics-drawing-bitmap.html)

Stanlay Hanks 27. Dez 2004 16:11


Drawing.Graphics in Drawing.Bitmap
 
Hallo zusammen.

Bezug nehmend auf diesen Thread: Farbe unter der Maus unter .net ergibt sich für mich ein "Teilproblem". Ich möchte irgendwie den Inhalt eines System.Drawing.Graphics in ein System.Drawing.Bitmap bekommen. Hat das schon einmal jemand hinbekommen?

Danke im Voraus, Stanlay :hi:

mirage228 27. Dez 2004 16:24

Re: Drawing.Graphics in Drawing.Bitmap
 
Hi,

versuchs mal so:
Delphi-Quellcode:
System.Drawing.ImageConverter.Create.ConvertTo(BitmapObjekt, System.Drawing.Bitmap.ClassInfo)
(ungetestet)

mfG
mirage228

Stanlay Hanks 27. Dez 2004 16:41

Re: Drawing.Graphics in Drawing.Bitmap
 
Hi. Danke für den Vorschlag. Hat leider nicht geklappt :(

Delphi schreibt:

Unbehandelte Exception bei @($4,$60004A5,$104). Exception-KlasseSystem.NotSupportedException mit Meldung
'"ImageConverter" kann "System.Drawing.Graphics" nicht zu "System.Drawing.Bitmap" konvertieren.'. Prozess Project1.exe (2812)


Man liest sich, Stanlay :hi:


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:16 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