Home > Back-end >  C Builder6.0 added in the form of background images, run after the picture upside down
C Builder6.0 added in the form of background images, run after the picture upside down

Time:09-22

C + + Builder6.0 added in the form of background images, run after the picture upside down, is what attribute to set?

CodePudding user response:

Form without this attribute, their control of the WM_PAINT message to draw

CodePudding 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 coming

CodePudding 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 white

CodePudding user response:

refer to 6th floor liurui191025 response:
what is on the lower off can you explain it thank you I'm a small white


Right-click on a control, control, buy,
But belongs to TGraphicControl Image, even on top of other controls at run time is drawn on the Form, because its Canvas is the parent container Form of Canvas,
  • Related