answersLogoWhite

0


Best Answer

Main Difference:

The Image control is a lightweight control that has no device context (or hDC) or it's own. The Picturebox does have a device context and hDC and is a true "window" from the point of view of the Windows operating system

(and can directly use "hWnd" parameter API

calls).

Due to this difference, an Image control can display a gif file loaded into the picture property with a transparent background, while a picturebox does not. The Picturebox, however, doesn't "flicker" when moved at runtime like an Image control does. This difference also has implications for layering -- a lighweight control (like the Image control) can only be z-ordered (layered) over another lighweight control --but never over a true window like the Picturebox control. The Image control is also "lightweight" in terms of it's memory footprint (versus the Picturebox control which is "heavier" even without the extra memory backbuffer that is reserved with its AutoRedraw property set to True) --although with the amount of memory available in most modern computers, this doesn't usually make this much of a difference, but it might come into play with large control arrays containing large graphics that would force paging out to virtual memory (which, in turn, could effect the speed of game graphics).

An Image control has Stretch property, a Picturebox control does not.

Picturebox control has an AutoSize property, an Image control does not.

However code workarounds can substitute for these two missing properties in either/both.

Both controls use a StdPicture object to store graphics and so Picture.Render and LoadPicture/SavePicture will work with both (but PaintPicture only works with the Picturebox control).

A Picturebox control is a container control, an Image control is not.

A Picturebox control also has a whole bunch of properties that an Image Control does not - BackColor, FillColor, FillStyle, etc.

The long and short of it [IMHO] is that the PictureBox control is the more generally useful of the two controls and used in conjunction with PaintPicture or the Bitblt/Stretchblt/AlphaBlend APIs can do just about anything you could want with graphics.

DirectX surfaces may be slight faster way of manipulating graphics, but when using Direct Memory Access (DMA) pixel manipulation techniques with Picturebox control graphics --it can be relatively quick..and works even with older non-Directx compatible video cards/systems.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between picture box and image box?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

If you copy a picture from the internet how can you get a HTML code for it?

Image URL AddressIf you right click on the picture (image) a box will open. You then select "properties" and a properties window will open. The information provided will include Web Address (URL) This will have the URL of where the image (picture) is located. You can copy and paste it into the HTML of your document. You should have permission to use it.If you copied the image from another website you have to save it to your own server (host) to use on your web page. Again you should get permission from the website that hosted the image. To save it to a file you can right click the image, and select "save picture as" you then select the file you want to save it to. In order to use it on the web page the image must be hosted on a server.Using HTML to display images you use the tag. To display an image on a page, you need to use the (source attribute) src= The value of the src attribute is the URL of the image (skull) you want to display on your page which means that the image you want to display must be uploaded to a server, and have a web address (URL). The URL for the image points to the location where the image is stored on the server.


What is the difference between CSS box shadow and CSS filter drop-shadow?

A CSS box shadow effect is applied to the outer layer of an element while the filter drop-shadow, an experimental property, follows the rendered shape of any element including pseudo elements, such as a tootip with an arrow. A filter drop-shadow also takes into account the transparent aspects of a .png image.


How do i change my display picture on mercury messenger?

I worked all morning to figure this one out and i got it. first have whatever picture you want as your display picture on your desktop. then you simply go to account settings. then a box will appear and click display picture. a big empty white box will appear. now drag the picture you want from your desktop to this white box. click apply. then click ok. finished


What is the Difference between text box and input box?

picture box:1) it act as container control2) use of memory to store the picture3) editing of picture is possible in picture box4) having auto size property5) not having stretch propertyImage Box:1) it is not act as container control2) not use of memory to store the picture3) editing of picture is not possible in picture box4) Not having auto size property5) Having stretch property


Pictures in a scroll box?

To put pictures in a scroll box, merely insert the proper code to embed an image alongside the other text in a scrollbox.

Related questions

Difference between Picture Box control and Image Control?

Image BoxPicture Box1) it is not act as container control 2) not use of memory to store the picture3) editing of picture is not possible in picture box4) Not having auto size property5) Having stretch property1) it act as container control2) use of memory to store the picture3) editing of picture is possible in picture box4) having auto size property5) not having stretch property


How can you check the resolution of a picture in Photoshop?

After opening the image you want to check the resolution of by going to "File", then "Open", click "Image", and then from the dropdown box, select "Image Size". In the new box that opens up, the width, and height boxes will tell you what resolution the image is.


What is the difference between out box and sent items?

the difference is...


How do you change your picture in sketchfu?

To change ur pic? Go toi edit profile and under ur profile image box clik browse and select an image.


What is the difference between a 1998 8' box and a 1999 8' box for a Chevy silvarado?

There is no difference at all.


Can you show me an image of the saber-toothed cat?

We do not allow pictures, images to be put in our answer box. You can see picture in you public library.


What is the term for a mouse scrolling onto an image and a caption box appearing over the picture and where can you find out how to do that?

You can do it using the onMouseOver event in javascript


How do I obtain an image on the screen of my 1970s tv studio camera?

Take a picture with your camera phone then mail it to your internet mail box.


How can TV picture improve using the sky plus box?

The sky plus box provides digital signal, so the image quality is good. Combining the sky plus box with a HD box though, can provide enhanced quality image, if the television device can display in HD. A HDMI cable would be also required.


What is the difference between a lunch box and a school?

You Can Teach Students In School And Not In A Lunch Box ?


You want to create a watermark image. Which tab on the Format Picture box would you use?

It is on Page Layout tab in Page Background section


Is there a picture of the Wisconsin double leaf quarter?

Many pictures exist on the web. Just type in what your looking for in the search box and click on Image.