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
LockBitsis a No-Op. You need to be using theQImageclass, that's about it. You can paint on aQImageby starting aQPainteron it, or by tweaking its binary data. Eventually you convert it to aQPixmapand you can draw it on the screen (in a widget or window).