picturebox

save part of picturebox content as image

hi, following situation: loading an image into a pictureBox works selecting ( / marking) an area by drawing a rectangle via ControlPaint::FillReversibleRectangle(...) works how do i save the selected part of the image? thanks alot ...

drag to pan on an UserControl

Hello, I'm trying to build my own "PictureBox like" control adding some functionalities. For example, I want to be able to pan over a big image by simply clicking and dragging with the mouse. The problem seems to be on my OnMouseMove method. If I use the following code I get the drag speed and precision I want, but of course, when I re...

Setting my PictureBox to transparent background color doesn't really make it transparent. Bug?

Here's what I have in VERY simple easy to grasp terms. My form background is Blue. I created a gradient image from white to the Blue from the form background. This is to give the form a nice gradient look. I added a picturebox to my Form and set this image as the Image. I added a picturebox with a Logo on top of the gradient Picturebox...

how to draw a circle and line in the picturebox? c#

how to draw a circle and line in the picturebox? sorry for stupid question thanx ...

Load image in PictureBox before make control visible.

Hi, I have a form with black background, with 9 picture boxes. When the program starts, I want to show 9 images using these picture boxes. However, the picture boxes take time to load the picture. It is quite ugly that the picture boxes show up first while waiting. Is there a way I can move from blank black screen to straightaway 9 im...

add on click event to picturebox vb.net

I have a flowLayoutPanel which I am programatically adding new panelLayouts to. Each panelLayout has a pictureBox within it. It's all working nicely, but I need to detect when that picture box is clicked on. How do I add an event to the picture? I seem to only be able to find c# examples.... my code to add the image is as follows... ...

XNA.Texture2D to System.Drawing.Bitmap

I need load XNA.Texture2D to PictureBox. i've tried this: http://www.gamedev.net/community/forums/viewreply.asp?ID=3224621 but it doesn't work. Any suggestions? ...

Right way to dispose Image/Bitmap and PictureBox

I am trying to develop a Windows Mobile 6 (in WF/C#) application. There is only one form and on the form there is only a PictureBox object. On it I draw all desired controls or whatever I want. There are two things I am doing. Drawing custom shapes and loading bitmaps from .png files. The next line locks the file when loading (which i...

Hide multiple PictureBox except clicked

HI Let me explain what i wont to do.I have a form and there is 10 picturebox on it.when I click one of them I wont to hide all other except clicked.It is possible that on click event of all of them hide others.but I ask for efficent way.forexample with a single function call from click event maybe ...

C# how do i make picturebox to form

I'm unable to make my pictureboxes to be shown on form. Am i doing it wrong or? This is my code: static Bitmap[] pictures = new Bitmap[9]; PictureBox[] picBox= new PictureBox[9]; on the constructor : pictures[1] = new Bitmap(@"1.1Bright.jpg"); * picBox[1].Location = new System.Drawing.Point(25, 7); ...

C# winforms Picturebox, backgroundimage zoomed at the top?

I have a picturebox where I change the BackgroundImage frequently. I have a the BackgroundImageLayout set to Zoom. The problem is that when an image does not have the same scale as the picturebox, the picture is drawn in the middle. That is, the top and the bottom padding of the picturebox is always the same. I would like for the Bac...

VB.net nearest control

Is there an easy way to get the nearest control to a control of choice? I have a picture box and some other moving controls. I want to delete the nearest control to my picture box. So I have to get the position of all controls and delete that with the Location nearest to the Location of my picture box. I'm not sure about how to do that...

picturebox image randomisation C#

Hi everyone, i am working on a puzzle slider program and trying to randomize images inside of pictureboxes. I did some research on the internet can't find any examples i could work on. These are my code: Random r = new Random(); PictureBox[] picBox = new PictureBox[9]; picBox[0] = new PictureBox(); picBo...

How to display a RAW image into a Picturebox by clicking on Button

How can I display a RAW image into a Picturebox by clicking on a Button in a Visual Studio 2008 using C#. RAW images can be read by DCRAW.C file and I don't know how to "connect" dcraw.c + Picturebox + Button... Thx! ...

list(of byte) to Picturebox

I have a jpeg file that is being held as a list(of Byte) Currently I have code that I can use to load and save the jpeg file as either a binary (.jpeg) or a csv of bytes (asadsda.csv). I would like to be able to take the list(of Byte) and convert it directly to a Picturebox without saving it to disk and then loading it to the picturebox...

creating grafhic and save it as Bitmap

I have two questions: 1) I have a PictureBox and its Dock is set to Fill. When I resize the Form I cannot create a Graphic on the part of the PictureBox that is extended. What is the problem? 2) I want to convert the Graphic that is created on the PictureBox to Bitmap and save it as *.JPG or *.bmp. How can I do this? ...

is there picturebox in java SE application(using netbeans)

is there picturebox in java SE application(using netbeans). i dont want to use label and Imageicon. can someone help me . ...

Add multiples Picturebox using ThreadPool

Hi! Im doing a Naval Battle for University. I decided to do it in C#. My board is 20 x 20 of mini (20x20) PictureBoxes. The problem is when I load the board I got a huuuge delay for draw all of them in the panel which contains them. So I thought to ThreadPool my method to escale the picuteres boxes creation and drawing fester. Is this ...

Dynamically generated controls issue.

I have a form with a panel docked in it. I then dynamically create 15 panels (named: panel_n) and 15 pictureboxes (named: picturebox_n) on the primary panel (named ContainerPanel). When dragging the any picturebox over a panel (panel_n) created using the relevant mouse events. I would like to get the panel's name that the picture box wa...

Displaying video capture in a picturebox

Hi, I have compiled the sample PLayCap from the directshow.NET website in C#. PLayCap - This application creates a preview window for the first video capture device. Although the program works fine, i need to add buttons to the form. I cannot do that since, the video capture is displayed on the entire form. I want it to be displayed ...