picturebox

picturebox properties in VS2008 using c#?

hello i have three bmp files one is static while other two are dynamically changing by a graphic object i have two threads for this purpose to update that two bmp files the problem is i want to display the static bmp as it is every time and the dynamic bmps updated every time may ma XOR a good solution but i don't know how to do this eff...

Changing icons in picture control

What do i need to change icons at runtime every 5 seconds in picture control to give the user a notification that the work is in progress? ...

Picture from Datagridview to picturebox

I have a datagridview that contains some text and a image. The image is user added so each line will probably have a different one. Im looking for a way to take the image that is placed in the datagridview and drop it back into the picturebox. I have no clue where to do with this. There is a dataset made but I am totally lost where to go...

Zooming an image inside a picture box

I'm have a picture box control and 2 Command Buttons. I have an image displayed inside the picture box. Is it possible to zoom the image when the Zoom-in and Zoom out buttons are clicked? Or I can even put a scroll bar. Is it possible to zoom the image according to the scroll bar movements? I'm using VB 6. ...

Saving pictureBox Image on Network Folder

hi i want to save picturebox image in a share folder on network i use this code pictureBox1.Image.Save(@"192.168.1.39\xxxxxx", System.Drawing.Imaging.ImageFormat.Jpeg); but it rauses error please help me! xxxxxx is name of shahre folder ...

PictureBox Drawing Coordinates Relative to Form

I have a PictureBox on a form. In Load event of the form I create graphics as follows: imageGraphics = Graphics.FromImage(PictureBox1.Image) Then, in PictureBox_MouseMove event I draw ellipse: imageGraphics.FillEllipse(New SolidBrush(brushColor), e.X, e.Y, brushWidth, brushWidth) No matter what I try, it always draws on incorrect ...

Transparent pictureboxes flickers when moved with mouse

I have made a card game built of pictureboxes. The empty places a card can be put in is an empty picture box with a transparent background and a 3d border. And then I have a current card which is also a picturebox which is moved by a MouseMove event. As soon as I drag a card over the transparent PictureBoxes there is a card left all ov...

Populating PictureBoxes with webimages via SQL fields.

I have a potential of up to 4 images per database row/entry and I am querying on Gridview_currentRowChanged. The issue was how to clear the picturebox(s) before loading the next row. private void radGridView1_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { panelImages.Contro...

C# Adding one more option to PictureBox

Hello, i was wondering how could i add .customString to PictureBox object. Something like: PictureBox box = new PictureBox(); box.CustomString = "string here"; And then later on i would be access it. MessageBox.Show(boxname.CustomString); Thank you. ...

C# Graphics being overwritten

In c# I am using a PictureBox on a win form. I am trying to recreate MSPaint to learn about the Graphics Object. It all works fine and dandy except that when another window is on on top of the PictureBox, or the entire form is resized, what is drawn under the other window in there is removed. Here is a scaled down version of the code...

Length property for PictureBox not working

I am trying to use: PictureBox1.Length but I get the following error: Error 3 'System.Windows.Forms.PictureBox' does not contain a definition for 'Length' and no extension method 'Length' accepting a first argument of type 'System.Windows.Forms.PictureBox' could be found (are you missing a using directive or an assembly reference?...

Save createGraphics in a file as image

Hi, How can I transfer the values of my graphics to a bitmap so I can save it as jpg or bmp file. here's my code: private void pictureBox1_Paint_1(object sender, PaintEventArgs e) { using(var p = new Pen(Color.Blue, 4)){ for (int i = 0; i < _listPS.Count; i++) { e.Graphics.DrawLine(_pen, _l...

gif animation not animating while making visible = true of PictureBox

Hi, I am using an picturebox to show the wait gif animation when user presses 'log in' button in my C# form. I added the gif image to the picturebox and set visibility to false. When user clicks on the login button i set the visibility of the picturebox to true. the problem is that gif animation does not appear if set the visible proper...

Display picture box faster

I am trying to load images quickly into a picturebox and draw on them. I have a .13 second delay between the time I assign a bitmap to the picture box and when it shows up. And whenever I do a picturebox.refresh(), it is the same delay of .13 - .15 seconds before the paint method is called. Is there any way to get rid of this delay? I a...

C# WinForms - Listview loading Images

Hello, I have loaded a collection of images into a folder(icons), and I am wondering how I can load all of these into a listview during the startup of the program. I am trying to get them to load into the view, showing the picture with a caption or description under the image. After this, I plan(somehow) to select one and click within...

Picturebox transparency

Hi, can anyone help me how to apply transparency on picturebox on Winforms? I have a panel as a main container having a background picture, and I have a picturebox which overlapped on it. So all I need is to have a transparency on picturebox. ...

Visual Basic 2010 Picturebox1.Image ftp upload

can someone show me an example script of how I would upload picturebox1's Image to an FTP connection? ...

C# how to show image in picturebox

I'm trying to display dicom image using openDicom.net. What should i correct here? openDicom.Image.PixelData obraz = new openDicom.Image.PixelData(file.DataSet); // System.Drawing.Bitmap obrazek = (Bitmap)Bitmap.FromFile(element); pictureBox1.Image = obraz; pictureBox1.Show(); ...

How to convert Single Channel IplImage* to Bitmap^

How can I convert single channel IplImage (grayscale), depth=8, into a Bitmap? The following code runs, but displays the image in 256 color, not grayscale. (Color very different from the original) btmap = gcnew Bitmap( cvImg->width , cvImg->height , cvImg->widthStep , System::Drawing::Imaging::PixelFormat::Format8bppIndexed, (Sy...

How to thread safe call to PictureBox.Image in c# , currently gives one of 3 errors.

I am using this PictureBox on a form, to this picture box I use the AForge Code. I pass the REFERENCE of the pictureBox into a webcam class I create that initializes the webcam and tells it where to draw its frames to....so it happily draws it frames... no problemo. But then certain times (when I want to do stuff with said image, if a ...