It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I would like to draw a 3D border (bevel) using GDI+, for example inside the Paint event of a Control. Should I write it by myself using DrawLine and KnownColors or there is something ready to use?
Thanks
Saied
What are you using to draw? GDI+ on WinForms? If that's the case you can use the ControlPaint.DrawBorder3D method, for example in the Paint event handler:
ControlPaint.DrawBorder3D(e.Graphics,
((Control)sender).ClientRectangle,
Border3DStyle.Bump);
See the Border3DStyle enumeration for the list of all available styles.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Hey I need help to give my textbox a gradient color.
I know that I can give the actual WIndows Form a gradient color but I just can figure out how to give the textbox that I want?
Please help me :)
you can check this out. It must help you.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
http://www.gutgames.com/post/Adjusting-Brightness-of-an-Image-in-C.aspx
Can anybody help me please?
The graphics class does not work in WPF
It doesn't need to be changed. Use an Image element, set the source in code to the resulting bitmap type.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
how in windows forms rotate picturebox element at 45 degrees
You can use Graphics.RotateTransform on the image.
Graphics graphic = Graphics.FromImage(myImage);
graphic.RotateTransform(45);
http://www.codeproject.com/KB/graphics/RotatePictureBox.aspx in that they clearly explained with sample
For the picture inside the picturebox, use Bitmap.FlipRotate method.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i have a simple question.how can i use property of a class in another class in ?i have a picturebox in a class and i want to use the picture in picturebox in another class.how can i do it?thanks.
(edit: this answer relates to when the question referred to tabs)
Unless I have misunderstood the question, a couple of options:
have two separate instances of the PictureBox and associated image
sneakily re-position the PictureBox when the tab index changes (small saving on resources)
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Can I use WPF to import a 3D character and manually animate it like the skinned model
in XNA?
The short answer is no. There is no standard library in WPF which will support this.
The long answer is Yes; if you write all of the underlying code yourself.