Changeset 494 for GraphicTest/Packages/bgrabitmap/bgrareadtga.pas
- Timestamp:
- Dec 22, 2016, 8:49:19 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/Packages/bgrabitmap/bgrareadtga.pas
r472 r494 116 116 for Col:=Img.Width-1 downto 0 do 117 117 begin 118 PWord(PDest)^ := PWord(P)^; 119 (PByte(PDest)+2)^ := (PByte(P)+2)^; 120 (PByte(PDest)+3)^ := 255; 118 PDest^ := BGRA((P+2)^,(P+1)^,P^); 121 119 inc(Pdest); 122 120 Inc(p,3); … … 129 127 inc(P); 130 128 Value:=value or (P[0] shl 8); 131 With PDest^ do 132 begin 133 Red:=((value)shr 10) shl 3; 134 Green:=((value)shr 5) shl 3; 135 Blue:=((value)) shl 3; 136 end; 129 PDest^ := BGRA(((value)shr 10) shl 3,((value)shr 5) shl 3,((value)) shl 3); 137 130 Inc(PDest); 138 131 Inc(P);
Note:
See TracChangeset
for help on using the changeset viewer.