CodePudding user response:
Form without this attribute, their control of the WM_PAINT message to drawCodePudding user response:
What did you do?Can like demon elder brother said, put a Image or form (in the lower not covered the other controls), and set the Align attribute to alClient, with Image loading pictures,
CodePudding user response:
The most convenient way is to simply flip the picture at once, when are comingCodePudding user response:
Simple says, is that every pixel points, and then to redraw on another picture, and then put the picture back in another picture,The following is the key code reference:
Realize image 180 ° rotating the key is to allow two images at the same time code values:
Void __fastacll TForm1: : S_90Click (TObject * Sender)
{
Form1 - & gt; Canvas - & gt; FillRect (Form1 - & gt; Canvas - & gt; ClipRect);
MyBItmap2 - & gt; Width=myBitmap1 - & gt; Width;
MyBitmap2 - & gt; Height=myBitmap1 - & gt; Height;
int i,j;
for(i=0; i
{
Newline=(PicByte *) myBitmap2 - & gt; ScanLine [I];
PTR=(PicByte *) myBItmap1 - & gt; ScanLine [myBitmap1 - & gt; Height - I - 1].
for(j=0; j
{
Newline [j]=PTR [myBitmap1 - & gt; Width - j - 1].
}
}
Form1 - & gt; Canvas - & gt; The Draw (0, 0, myBitmap2);
}
CodePudding user response:
Problem solving environment is not as good as baidu words, CSDN, now in baidu mix some more, ha ha,CodePudding user response:
What is on the lower how put can you explain it thank you I'm a small whiteCodePudding user response: