![]() |
AW: 15Bit RGB in TBitmap32 konvertieren
So?
Delphi-Quellcode:
Wenn das geht, dann verrat ich vielleicht auch das warum :angle2:
RawMS.CopyFrom(SourceMS, 50560); // RawDaten holen ((158+2) * 158 * 2)
for i := 0 to 157 do begin Ptr := bmp.ScanLine[i]; RawMS.Read(Ptr^, bmp.Width * 2); //RawMS.Position := RawMS.Position + (4 - (bmp.Width * 2) mod 4) mod 4; RawMS.Position := RawMS.Position + 2; end; PS: 158 * 158 * 2 = 49928 :zwinker: |
AW: 15Bit RGB in TBitmap32 konvertieren
Delphi-Quellcode:
var
bmp:TBitMap; begin bmp:=TBitMap.Create; bmp.LoadFromFile('C:\temp\bummi.bmp'); bmp.PixelFormat := pf32Bit; bmp.SaveToFile('C:\temp\bummi2.bmp'); bmp.free; end; |
AW: 15Bit RGB in TBitmap32 konvertieren
@turboPASCAL: Wenn schon BitBlt statt DrawTo, denn BitBlt erzeugt wirklich eine exakte Kopie, während DrawTo eben „zeichnet“. Ist in diesem Fall kein Unterschied, da keine Transparenz im Spiel ist, aber trotzdem sollte man es lieber gleich richtig machen.
Aber eigentlich steht die Lösung doch eh schon in #8... |
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:21 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 by Thomas Breitkreuz