Einzelnen Beitrag anzeigen

neumimnemecky

Registriert seit: 21. Dez 2018
45 Beiträge
 
#1

How to get Integer from Pointer

  Alt 23. Nov 2022, 19:35
Hello,
I have a TBitmap or TPaintBox and I scanline to get pointer to first line...

Code:
ps0 := DWORD(bm1.scanline[0]);
Then I have
Code:
type TRGBColor = Integer;
var pFirstByte:DWord;
MyColor: TRGBColor;
MyColor:= how to make the cast to get the color in integer?

This is just for comparison of colors, the order of bytes is not important here.

Geändert von neumimnemecky (23. Nov 2022 um 19:37 Uhr)
  Mit Zitat antworten Zitat