![]() |
| ||
| is it possible to save a visual basic form in jpeg format??? pls help... urgently... does anyone here know how to save a visual basic form in any file format such a jpeg??? im currently working on a program wherein i can view an image + i can add labels and save it in jpeg format. pls help. urgently needed... tnx in advance... |
| ||
| Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently Quote:
In that sense, you can save the form with the picture on it. There are other contols that you can use on the form to hold the picture: the PictureBox, and the Image control. You have more options with the PictureBox control But you can set the picture property in the Property View and select a picture to be used on your form. Any controls dropped on the form will cover the picture. |
| ||
| Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently... Hi, I previously had a function that gets a screen shot but i can't finf it any more. Look on the internet for a function that perform "Print Screen" and then a function to crop that picture. |
| ||
| Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently Using the Win32 API, you need to: 1. CreateCompatibleDC to create a DC compatible with your window's DC 2. CreateCompatibleBitmap with the appropriate dimensions 3. SelectObject to select the window into the bitmap 4. BitBlt the window into the bitmap 5. Save the bitmap as Jpeg Hope this helps. |
| ||
| Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently... Quote:
|
| ||
| Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently I'll assume that what is required is the ability to load a picture into the form, put labels on it, and save it again. To do so one would load the picture into the form (or picturebox) use the Print Method along with the currentX or CurrentY properties, and then do a SavePicture() back to a Jpeg. |
| ||
| Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently... Fascinating question. Assume you have good reason for it. Either you're wanting to display a form and it's specific content as a picture such as in a help display or a tutorial which is ultra easy and outlined above or you want to save a form in Jpeg format as you stated, which, simply put is a yes, but pointless since the form will not be reusable. The other possibility is super sophisticated and implies you want to smuggle forms out in Jpeg files where the form content is not displayed but hidden in the unused portions of the Jpeg file. That is called steganography and there are multiple sources available for that technology. So which door is it, 1, 2 or 3? |
| All times are GMT -4. The time now is 3:07 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC