Please tell me this analogue in Qt. How to implement this in Qt? Thx!
BitmapData btmData= currentRegionMap.LockBits(new Rectangle(x, y, width, height), ImageLockMode.ReadOnly, currentRegionMap.PixelFormat);
byte* a = (byte*)btmData.Scan0.ToPointer();
There is no need to do this in Qt. In Qt, the
LockBits
is a No-Op. You need to be using theQImage
class, that's about it. You can paint on aQImage
by starting aQPainter
on it, or by tweaking its binary data. Eventually you convert it to aQPixmap
and you can draw it on the screen (in a widget or window).