Reduce Size Of Captured Image?
Apr 4, 2010I have wrote this code to capture image of desktop and save it somewhere!
i want to know how can i reduce the size of it[code]....
I have wrote this code to capture image of desktop and save it somewhere!
i want to know how can i reduce the size of it[code]....
I am using VS2010 and have an application that lets the user search for an image to store on a SQL database. I want to be able to reduce the size of the image when it passes certain size for obvious reasons.
View 1 Replieshow i can reduce image size to save in a database.
View 3 RepliesI have a database designed and implemented using ms sql server 2005. initially, the user has entered the pictures with a very big size because there was not restriction. now when the user is opening the crystal report so it takes alot of time and some time memory full problem occur. now i want to reduce the stored images size using vb.net. is it possible? can you help me.. because there is nothing impossible as per my experence.
View 5 RepliesThat's the function i coded to reduse the quality of an image but its a complete FAILURE it doesnt even make sence (It firstly takes a screenshot of the desktop)
Public Function GetScreenshot() As Bitmap
On Error Resume Next
For Each MainScreen As Screen In Screen.AllScreens
[Code]....
How can i achieve a ( 800X600 / 256 Colours ) Image to have the lowest file size possible? Yeah 70KB --> 30KB makes a HUGE! difference. 30KB IS PERFECT!
I want to programatically delete some pixels that are unused in order to reduce the image size.Can anyone tell me how to reduce the size of an image file without changing the pixels values..
View 1 RepliesI have created a program where I capture image and ask user to answer question upon the image they see. The details about a captured image will be shown in listview. When user click the listview item they can preview the image which they captured. I am unable to do it as keep showing the same image.
[Code]...
how to reduce file size? for example : i have a video file that size 13MB now, i want to make the video become 500kB even if the video become shorter thant the original. because i just want a little size of it.
View 6 RepliesI have a system in VB.Net 2003, and that system takes a very long time to load. From the minute I click on the EXE, it takes one minute before the log in screen appear (P4 with 1GB RAM, no other application running). The size of the EXE is 33.2MB. I think the problem is the way I code the program, 1) I declare all the form as obj when I first load the system and I've got over a hundred forms. I try to load them as I need them but it does not work cause forms with sub form would give me an error. 2) I am using dataset as we know dataset is not very efficient but I don't know how else to connect to the database. Is there anything like ADODB in VB6?
View 2 RepliesIs there any way to reduce the size of a .pst file using Microsoft.Office.Interop.Outlook(programmatically start PST Compaction)?
View 1 RepliesI am using a DataGrid in VB. I have to reduce the default height of a row. How might I do this?
View 1 RepliesHere's my scenario:
1) The user places a handful of image files into a given directory. Could be bmp's, jpg's, etc.
2) The images files will be saved into a 2nd "temp" directory and reduced down to a size reasonable for e mailing (ie. 200kb per file). I'm assuming they will end up as jpg's, so if they start out as bmp's they will need to be converted.If they start out as jpg's, and are just too big, they will need to be shrunk proportionately (ie. if they start out as 12 inches by 18 inches, they will end up as 6 x 9, or something like that).
I've found various bits of code on this forum (and others), but want to hear some opinions about the best way to go about it, assuming there might be as many as ten or twelve files that need to be manipulated. So should I read something into a memory stream (haven't tried that before), or create bitmap objects (seems slow?), etc.
I have a database application in which a user can add up to 6 pictures to each record. This pictures are not directly saved in the database but in a sub folder of the applicvation folder. Now, the problem is that lots of the pictures of users were taken on a digital camera with highest resolution - in these days it means that the picture files have a file size of 3MB.I would like to reduce the file size / resolution of the picture, so that the database can load and view this files more smoothly (I am not in need of a thumbnail preview, just want the pictures being a bit smaller).
The way pictures get attached / linked / 'inserted' to a database record is via OpenFileDialog. When a user selects a picture file it gets copied into the applications picture folder and renamed to the record ID of the actual record + number of the pic added.How could I reduce the picture size during adding it (OpenFileDialog / copying to folder)?
i`m wondering if there is a way to reduce the size of a saved recording video (.avi)For a 4 sec video the size is 40 MB!
View 6 RepliesI have a big windows forms project I'm working on. This project has 3 pictures included as resource. I had 3 pictures of each 5mb, which resulted in a .exe file of 17mb. This had to be adressed, because thats a bit to much, so I downsized the pictures to about 100kb each. I've removed the big pictures, and inserted the new ones. But when I compile the project, the .exe file still is 17mb, and it won't get any smaller. I've tried to 'Clean Solution',
View 3 RepliesHow to compress large mp3 files :
I want if i have a 5 mb files then it can be converted to 1mb or low ...so that the high beats and music would be very low.
i want the coding for that in vb or vb.net ?
I use some code to successfully resize and save images - but I want to save the image to 800x800 px size on a canvas of 900x900px so it has a white border type thing around it.
View 8 RepliesFor the resize I have a form to reduce and expend image code:
Dim source As New Bitmap(Form1.PictureBox1.Image)
Dim target As New Bitmap(Size.Width, Size.Height, PixelFormat.Format32bppRgb)
Using graphics As Graphics = graphics.FromImage(target)
graphics.DrawImage(source, New Size(16, 16))
End Using
As far as I know it resizes but when I save I get the default icon image instead of whats in the picture box?
I have just found that if a DataGridView image column's size (height & width - in pixels) is smaller than the image's original size (in my case all images are exactly 180 x 180 pixels) at the time the cell is populated then the image is automatically being converted to a lower resolution I assume to fit the image completely within the size of the cell). How can I stop the automatic scaling of the image?
The image below show the same file displayed twice, both at 60x60 pixels ('Thumbnail' column) and a blowup of the image (PictureBox populated via the CellMouseEnter event) to it's right. You'll notice the resolution of the first blowup is far less the the second. so, what made the difference in the resolution of the blowups is? In the second blowup's case I'd first stretched the image column's width to ~180 pixels and set the row height to match (via the ColumnWidthChanged event) then populated the DataGridView then stretched the image column to 60 pixels (its minimum).
I like to compress the xmldata before the data is provided to the client as an excel file. I am trying to compress and deliver it as a .zip file. its not working Here's my code below. I tried compressing it, converting it to bytes etc etc. The issue with below code is, the XSL transformation is not happening properly and the output excel file is raw xml with some .net exception at the end. (that's what I see on the .xls file that's downloaded at the end) Before I started working on compression my below code was working fine that gives properly formatted excel file from the xml input. the excel file is so nice you can't even tell it was from XML.
[Code]...
I am working with vb.net and want to increase the size of image when the cursor is over that image, but the image should come back to its original size when the cursor leaves that image area.I've used the following code to increase the size of image:[code]I've used the default size class but, it gives some different dimensions.by the code that brings the image into its original size that I've been declared into the picture box properties.
View 2 RepliesI am trying to split the image into 9 equal regions , and the below code does it well the problem is i want to get the selected image size and not picturebox sizeso what should i change to get the selected image size instead of picture box sizei dont want the picture box to grow in size with image because it will hide other buttons/textboxes etc
Dim xi As Integer = (PictureBox1.Image.Height)
Dim yi As Integer = PictureBox1.Image.Width
Dim px As Integer = xi / 3
[code]......
Set picturebox size to size of image file?
View 5 RepliesI have a form which contains an Image control. What I am trying to do is find a way to adjust an image according to the size of the control and have the image look normal no matter how I adjust the Image control. I want the actual image to fill the Image control completely and not loose any integrity.
View 2 RepliesI'm writing a Cleint/Host program that sends a image over tcp (from printscreen, not a file) to the host. Everything seems to work fine and the image is transmitted and displayed in a picturebox plus saved to a folder. The problem is when the printscreen is bigger than 176040 B. First the limit was 128000B but after setting the sendbuffersize and recivebuffersize to 1000kb the limit is 176040 B. Could it be a limit in the tcp protocol?
Here's the client code
Code:Imports System.NetImports System.Net.SocketsImports System.IOImports System.DrawingImports System.Drawing.Imaging
Public Class capture
[Code].....
VB2005: I've been looking at regex for some hours now and cant seem to get my head around the .Replace for my case. I'm looking for two fields and then I want to replace those fields with new values. So my string looks like so:
[Code]...
What do I put in MyRegexReplace? This is a simple two value replace but Im going to have possibly more so was thinking there has got to be a way to do this but need .
I'm having trouble trying to find the best method to do what I'm needing.
I'm thinking of using a regular expression to read a .txt file and parse out the MAC id information that will be in the text file. I was wondering if there was an easier way to do it or what the best way to do this is.
readall(textfile)
macID = d{1, 4}.d{1, 4}.d{1, 4}
totalMacInfo = all the macs in the text file?
If you guys have an alternative solution or a good way to write out the code I am open to suggestions. Not exactly sure how best to mix the expression into reading a txt file to get the data i need.
I come across this web site that explains how to get a video from a webcam.
[URL]
all works fine apart it does not save the file?
I created a base form that has a specific size and an icon as a base for all forms created in my project (to be consistent in looks). The problem is, for some reason if I add a Text box to the Child form, I can no longer execute shortcuts like Copy (CTRL+C) etc into the Textbox.
What should I do to handle this OTHER THAN writing code to capture those on the KeyUp control?
This is also the case for RichTextBox control as well.
When reading from a network stream using the following [code] I tend to get the data in two or more chunks, unless I specify a delay after each buffer read (which is hardly desirable). It is usually a problem with 4k+ buffers written (in one large chunk and 'flushed') to the networkstream and read in smaller chunks (of say 1k).This is seriously problematic for the rest of the code, since the information is broken up in bits and not properly handled.Is there a way to ensure that all data available is 'captured' without using unrealisticly large buffers or using delays?
View 4 Replies