![]() |
image in Bytearray umwandeln?
Hallo,
ich möchte ein image in ein array of byte umwandeln nach dieser Vorlage in VB Private Overloads Function ImageToBytes( ByVal Img As System.Drawing.Image ) As Byte() ' Konvertiert ein Image-Objekt in ein Byte-Array Dim IC As New ImageConverter ' Mithilfe des ImageConverter-Objekts ein Image ' in ein Byte-Array überführen ImageToBytes = CType(IC.ConvertTo( Img, GetType(Byte()) ), Byte()) End Function ------------------------------------------------------- was mache ich hier falsch? var bmp : image; pic : array of byte; ic : imageConverter; begin bmp := bitmap.Create('F:\image.gif'); ic := imageConverter.Create; result := byte(ic.Convertto(bmp, pic.GetType ) ); end Danke f. die Hilfe |
Re: image in Bytearray umwandeln?
Argh und in die Internetsparte gehört es auch nicht. Hier:
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:40 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz