Click here to Skip to main content
15,893,487 members
Everything / Image

Image

image

Great Reads

by Colin Vella
This article presents an algorithm and data structures to implement auto-tiling as seen in RPG Maker, the Starcraft level editor, etc.
by bbirajdar
How to embed an image in email body
by Miguel Diaz Kusztrich
A simple way to build a wide family of fractals
by Miguel Diaz Kusztrich
An infinite set of biological shape fractals in the complex plain

Latest Articles

by honey the codewitch
Image Resizer automatically resizes images you drop in a monitored folder based on criteria you give it. It can also change image formats.
by Peter Huber SG
Let the user import, adjust and view images
by spidergeuse
Manipulate WinForms controls to make a simple jigsaw puzzle
by Christian Specht
Overlay gallery images with logo using one of Hugo's available image filters

All Articles

Sort by Title

Image 

2 Feb 2012 by cutexxbaby
i have this master page and a web form with the master page the problem i have is that the code wont run or save into the folder i want it to, so how do i change the code in the vb?basically i have a javascript which have a input that allow me to upload a file or image, but the problem, it...
3 Feb 2012 by Christian Graus
I think your 'mappath' needs to start with a / to map to the application root. Beyond that, based on your vague description, I'm not sure what's going wrong or what the problem could be.
25 Oct 2015 by NekoNao
Cropping, Covnerting to Gray , Gray to Black and White seems to be working fine but I have problem with Morphology - it is from Aforge Library.'MAKE OPENING MORPHOLOGYDim x As Bitmap = PictureBox3.ImageDim filterOpening As New Opening()PictureBox4.Image =...
25 Oct 2015 by NekoNao
finally. Found the answer here.[^]Dim bmp32bpp As Bitmap = bmp8bppIndexed.Clone _ (New Rectangle(Point.Empty, bmp8bppIndexed.Size), _ Imaging.PixelFormat.Format32bppArgb)
7 Feb 2021 by MRS_
I'm working on a project which includes an Arduino camera that broadcasts its video through wifi, connecting to the camera URL. When watching the stream from a browser, I get about 15 fps. I've gotten my c# application to load the image from...
7 Feb 2021 by OriginalGriff
Basically, we can't help you - we have no idea what you are doing with the image, and no access at all to your local network or the computer it is loaded on - but loading a video of any form frame by frame as separate images is never going to...
7 Feb 2021 by RickZeeland
RTSP streams are commonly used, see if your camera supports these. Here is a CodeProject article about it: Stream Player Control[^]
18 Mar 2014 by Johannes Bildstein
Reading and writing Bitmaps with full 16bit per channel (and possibly more)
27 Nov 2017 by srikaracharya
We are building a document management system in ASP.NET. This application should support document (office documents, PDF and TIFF) viewing and editing on line (in the browser itself). We are looking for a third party component which offers these services. The API/SDK should not use any ActiveX...
3 Jun 2013 by Abhinav S
You can explore iTextSharp[^] for PDF editing.
25 Dec 2013 by kodmail
I have 512*512 16 bit raw 'Lena' data I wanna show this data 24bit or 32bit depth colored image. I use C#.I show this data 16 bit gray scale;gray scale 16bit depth Lenabut I wanna show colored image as the given link colored Lena
25 Mar 2019 by Member 14171287
while iam trying to use this jQuery. im facing "401 Unauthorized" error in Chrome & firefox debugger. i just want to capture the image using webcam and save/display. What I have tried:
8 Aug 2013 by ilostmyid2
i have an Image object. it's monochrome. i need to get pixels of the image and save each adjacent 8 pixels as a byte.how can i do it in C#?for example if the eight pixels from top left of image are white, white, black, black, black, white, white and black i want to write value 0x39 in the...
8 Aug 2013 by Sampath Lokuge
For that check below mentioned links.Using the LockBits method to access image datahttp://bobpowell.net/lockingbits.aspx[^]For more info :http://stackoverflow.com/questions/190385/how-to-manipulate-images-at-pixel-level-in-c[^]I hope this will help to you.
8 Aug 2013 by Fredrik Bornander
Something like this might solve it for you.using System.Drawing;using System.Text;using System;namespace ParseTest{ internal class Program { private const int Black = unchecked((int)0xFF000000); private const int White = unchecked((int)0xFFFFFFFF); ...
11 Nov 2012 by marcel zol
When i open image into a picturebox, at the same time i want to delete the image from disk.At this moment i can`t because it shows the error:The process cannot access the file 'C:\Users\......... .jpg' because it is being used by another process.This process is my program in which i...
11 Nov 2012 by OriginalGriff
Don't just load the image - the documentation does say that the file or stream must be available for the duration of the Image instance.Instead, load it from the file, create a new image from it, and then dispose the original: Image im = GetCopyImage(@"D:\Temp\AAAA.jpg"); ...
16 Jul 2013 by Dhruv Shah007
I have one more idea but I don't weather it will work or not..when we load the image to picturebox first copy it to temp folder of operating system or in any other folder whatever you want and then load image from there and while deleting the image delete it from original path.and when we...
8 Apr 2014 by SweetSSS
Dim fs As System.IO.FileStream' Specify a valid picture file path on your computer.fs = New System.IO.FileStream("C:\WINNT\Web\Wallpaper\Fly Away.jpg", IO.FileMode.Open, IO.FileAccess.Read)PictureBox1.Image = System.Drawing.Image.FromStream(fs)fs.Close()
19 Oct 2020 by Member 14846576
I'm making a strategy game in C# (nothing too wild, no animations or action). I managed to draw a section of the map and allow the user to scroll it, using DrawImage and specify a region of the map image to draw: RectangleF srcRect = new...
19 Oct 2020 by OriginalGriff
You can try setting the form DoubleBuffered property to true: Control.DoubleBuffered Property (System.Windows.Forms) | Microsoft Docs[^] and see if that improves it, but the best solution is not to use a PictureBox at all. Instead, put a Panel on...
28 Nov 2015 by Jeff Garcia Samson
Hi everyone, how will I insert an image to MS Access database after I converted the image into byte[]?I used this code to convert the image into byte[] public byte[] imageToByteArray(Image imageIn) { MemoryStream ms = new MemoryStream(); ...
28 Nov 2015 by ridoy
Like this one:var pic = File.ReadAllBytes(yourFileName);OleDbCommand cmd = new OleDbCommand();cmd.CommandType = CommandType.Text;cmd.CommandText = "insert into Table1 (id, picture) values (@p1, @p2)";cmd.Parameters.AddWithValue("@p1", TextBox1.Text);cmd.Parameters.AddWithValue("@p2",...
28 Nov 2015 by Krunal Rohit
public static void AddEmployee( string lastName, string firstName, string title, DateTime hireDate, int reportsTo, string photoFilePath, string connectionString){ byte[] photo = GetPhoto(photoFilePath); OleDbCommand command = new OleDbCommand( "INSERT...
1 Oct 2012 by Jackie00100
Hi im working on a little "lol" project that should work like a semi-simple image editor, and i am currently looking for a way to add text to a image. How ever the text is RTF encoded (to get the bold/italic etc. options) and i really wanna have this added to the program.I've seen a few...
1 Oct 2012 by Bernhard Hiller
You need the Graphics.DrawString method. You can get the Graphics object by Graphics.FromImage. And then draw all the text your self...
2 Oct 2012 by BobJanova
There are two options here:You can write the text to a RichTextBox and then screen capture it with Control.DrawToBitmap[^]. You probably need to post-process the Bitmap you get to sort out the transparency.You can write a miniature RTF (or HTML or other tagging system; RTF is pretty...
21 Oct 2012 by Jackie00100
I found this class recent extending the graphics class, i changed it a little, and it does everything i could ask for!using System;using System.Drawing;using System.Runtime.InteropServices;using System.Windows.Forms;using System.Drawing.Imaging;using System.Text;public static...
24 Dec 2012 by marcel zol
I need to add image as attachement from list not from disk.Image from list:List listImage = new List();i` added the images to this list.Image to add as attachement is:listImage[1]add as attachement to... = new System.Net.Mail.Attachment(...i`ve tried...
24 Dec 2012 by Thomas Daniels
Hi,Have a look here:Creating In-Memory Mail Attachments[^]In the article, there's text converted to a byte array, but you can do that also with an image:C# Image to Byte Array and Byte Array to Image Converter Class[^]
24 Sep 2013 by Richard MacCutchan
This is the fourth time you hve reposted this question; please stop. If you have further information to add then edit the original, or respond to people who have already given you some suggestions.
21 Jan 2016 by Luiey Ichigo
Hi,I have convert a bytes received from database to image file. After that, I will get the image dimensions to check either width or height is exceed the maximum width/height.If the width is max 1000px and saved image is 1200px, I need to resize the width so it not reach the max...
25 Jan 2016 by Luiey Ichigo
Solutions have been found.Private Sub ExtractImages() Dim listpath As String = "D:\image folder\image-list\" 'First line was retrieve blob from mysql database Dim mybytearray As Byte() = arr_imagelist.Item(0).arr_image Dim name As String =...
12 Jan 2017 by Dean Feng
Use common panel and GDI+ to achieve a magnifier effect of image in winform.
15 Jun 2011 by isaks
Shows how to create a nice looking photo frame control in WPF and animate it using the Ken Burns effect
5 Mar 2023 by spidergeuse
Manipulate WinForms controls to make a simple jigsaw puzzle
23 Jan 2012 by Stef Cas
A VB.NET project showing how to build a simple magnifying glass.
25 Jun 2016 by Will J Miller
This article describes the implementation of a custom class called MMSCropImageView. The class gives the feature of drawing and moving a rectangle over an image to identify the crop region and return it in an UIImage. It explains the considerations and solutions for cropping a bitmap.
1 Dec 2017 by Perić Željko
You could try this : Problem solving - Wikipedia[^] Algorithm - Wikipedia[^] Software development process - Wikipedia[^] All the best, Željko Perić
8 Sep 2012 by nagiub2007
i have feeder scannerso i use this codecommondialog.ShowAcquisitionWizard(device);and successfully scanned all images in scannerbut i want to access the path of these images stored by wizardto take these images and stored in database how can i get the path from c#
16 Jul 2012 by bikekowal
Hi all,I have a following problem. I want to build a application processing images from a camera in real time. The problem is that I cannot get to the bitmap data correctly. The following piece of code is running without errors but the problem is that the images don't change. The code...
16 Jul 2012 by Sergey Alexandrovich Kryukov
As I can see, you manipulate the bitmap and then completely forget the result, replacing it with a brand new instance of a bitmap (a line of code with new Bitmap(&hellip)).Besides, the name "m_PicBoxes" suggests that you use the class System.Windows.Forms.PictureBox, which is not a very good...
21 Oct 2015 by Member 11999641
hi all, I have created new directory and wanted to save chart image in this new created directory, how can I do this?This is my code:if (!Directory.Exists(@"C:\Users\user\Desktop\Project\Project1\Test\Test\NewProject\StoreImage\" + panel.HeaderText)) { ...
21 Oct 2015 by OriginalGriff
Try:string basePath = Path.Combine(@"C:\Users\user\Desktop\Project\Project1\Test\Test\NewProject\StoreImage, panel.HeaderText);if (!Directory.Exists(basePath) { Directory.CreateDirectory(basePath); }MyImageOfAChart.Save(path.Combine(basePath, "MyFileName.jpg"),...
31 Oct 2012 by sharadpanwal
i have web application in which i need to create crystal report.so that i have dataset named "dsHeader" which is assigned to crystal report as datasource.In this report i need to show image.I get data from database and get stored in one of table nad then merge this datable with `dsheader`...
11 Jan 2014 by Member 10517620
I found an example but not worksAdd Image to Statusbar
12 Jan 2014 by Erik Rude
I know it probably isn't this simple, but have you tried this?
12 Mar 2012 by sgkin
Hi. I have this problem.I want to draw text to an image, but at the end.But how can i find the real size of the metafile?what I am doing is this: FileStream fs = new FileStream("1.emf", FileMode.Open); Metafile m= new Metafile(fs); ...
5 Jan 2015 by Velkumar Kannan
How to add image data in json.???I have converted the image data in to Base64 string and i have to add this base64 string in JSon..
6 Jan 2015 by Arjsrya
Create a class with required properties like Image Id,Image etc.Store the values in those prooperties and convert it into JSON using Newtonsoft Library.You can serialize it into json object as follows.ImageProperties image = new ImageProperties();image.ImageId=101;image.ImageData =...
2 Nov 2010 by jhyn
Hello everyone,Im creating datagrid dynamically.How can i add imagebutton in that datagrid?Thank you in advance,jhyn
2 Nov 2010 by Hiren solanki
        ......
19 Sep 2015 by MrCoder BoxWeb
hello i need add multi watermark (cmyk) in a background and save cmyk using c#. need source or code for create program convert multi image in background and save cmyk. just save cmyk because for print picture just is cmyk color.
19 Sep 2015 by Abhinav S
You could use some third parties to add a watermark for e.g. How to programmatically add a WATERMARK to PDF documents[^].You could also try - Build a Simple Watermarking Utility in C#[^].
23 Sep 2015 by MrCoder BoxWeb
hii need save picture cmyk.your link save picture rgb.so can you help me at save cmyk format color?
6 Oct 2015 by Member 11793820
I have an Employee Profile Table.I want to add Employee Picture as varbinary(max).I am using C# with Ms Sql Server 2008.How can i Load/Save Image using Winform.
6 Oct 2015 by Krunal Rohit
Have a look at this excellent article:C# Image to Byte Array and Byte Array to Image Converter Class[^]uploading(saving) image to SqlServer2008 DB using C#(winforms)[^]http://www.redmondpie.com/inserting-in-and-retrieving-image-from-sql-server-database-using-c/[^]First link will get...
6 Oct 2015 by Manas_Kumar
Please go through below link:Sending/Receiving PictureBox Image in C# To/From Microsoft SQL SERVER[^]http://www.c-sharpcorner.com/uploadfile/e628d9/inserting-retrieving-images-from-sql-server-database-without-using-stored-procedures/[^]
20 Sep 2012 by fjdiewornncalwe
There is no simple way to do this because default tooltips are text only. You'd have to create a custom control to handle this.This CP article may be a good starting point for you: A ToolTip with Title, Multiline Contents, and Image[^]
23 Oct 2015 by Member 11999641
hi Members,I have 1 directory with many subdirectories. Inside each subdirectory there are many images. I have successfully exported all images from each subdirectory into one excel worksheet each on 1 excel workbook. For e.g. if I have 10 subdirectories, I will have 1 excel workbook with...
19 Dec 2016 by S.A.K
Hi,Is there any way to edit/convert/export video with watermark image without using any third party component and software in c# or wpf.If anyone know the information regarding this kindly please let me know.Thanks in advance,S.KWhat I have tried:I did using ffmpeg...
19 Dec 2016 by KarstenK
It sounds very easy, but you must change every frame of your video to show a watermark. The article Creating a Watermarked Photograph with GDI+ for .NET explains the process for a photo.So you need to decode, than add the watermark and then recode your video. Quite a lot of work not only...
24 Sep 2015 by nanimam
Do anybody know about aforge.net filtergraytogray class from aforge.net 1.6.2..from where i can get this class ??i searchd in google..not found....Bec newer version aforge does not include these class file.Pls help ..realy needed
24 Sep 2015 by Richard MacCutchan
Go to http://aforge.net/[^] and ask on their forums.
28 Nov 2023 by Babar Ali Nov2023
I have a camera device in device there is button in camera to capture the image I have having a issue when I capture the image with camera device the camera location is not in original size and image is cutting when I click on the form save...
5 Dec 2023 by sunday udegbu
PLEASE TRY REPLACING SOME OF YOUR CODE WITH THE FOLLOWING: //use GUID to get unique name for every capture file. Something like: string guid = Guid.NewGuid().ToString(); captureBitmap.Save(@"D:\Capture-" + guid + ".jpg",ImageFormat.Jpeg); ...
15 Oct 2015 by Member 11999641
hi Members, I have a ajax tab container that has several tabs, and I want to use DrawToBitmap to save each visible tab page as a separate bitmap file in an Image folder. My tab pages are created dynamically.This is my codes://Aspx file
4 May 2021 by Sarah Rozaizee
im trying to display image in datagridview image cell based on datagridview combobox cell value. this is how i load the combobox with the image name from the database. void shapeComboBox() { string constr = @"Data...
4 May 2021 by Richard MacCutchan
Every time you change something in a DataGridViewCell the dataGridView1_CellValueChanged event handler is called. The code inside the handler then changes the contents of the cell, so the handler gets called again. Which then changes the contents...
4 May 2021 by Sarah Rozaizee
Already changed it. void dataGridView1_CurrentCellDirtyStateChanged(object sender, EventArgs e) { if (dataGridView1.IsCurrentCellDirty) { // This fires the cell value changed handler below ...
13 Sep 2012 by softprga
animated gif not working in ie7.It works in other browser like firefox,crome.
13 Sep 2012 by Sandeep Mewara
It's a common issue (was I should say as we are into IE9 now!). It's a known bug (limitation) of IE. Resolution: You could use JavaScript to solve it - Preload image and change source () of freezing image to that preloaded image on "onbeforeunload" action OR place the image...
28 Oct 2014 by Member 11068482
after 4 week i find my problem and i should setup my camera driver and update it for my laptop but when i debug my code it say successful but Many Camera View windows open and after that when i use 'T' for tracking it have troubleshoot occur any body know what is the problem??!!!!i debug it...
14 Sep 2014 by George Jonsson
You should go to the OpenCV official site for support. Welcome to opencv documentation![^]Here is an example from that site that looks like it shows what you want to do.Cascade Classifier[^]Quote:Use the CascadeClassifier class to detect objects in a video stream. Particularly, we will...
17 Dec 2018 by OriginalGriff
And how does this differ in any material way from your last question: How to crop an image in an appropriate way, C#?[^] The solution you have been given does not change just because you don't like the answer!
18 May 2015 by Sriram Mani
Hi all,Has anyone ever tried to integrate Google Image search within your website such a way that when you make a search by image, all the similar or same images within our website would be displayed as the result?Like upload an image + site:your website in Google Images search.Click...
24 Jan 2013 by Thé Dèvíl 2013
I have a scenario: I am downloading something through a program which when closed will start-over the entire download progress should I restart it. A situation happening in a desktop with the possibility of losing power in raid.Windows (perhaps the rest as well) has power-saving modes,...
16 Apr 2020 by Srimoyee Sarkar
I have an imageview in this app, I am able to capture an image on clicking the imageview, but when I want to display that image on the imageview after capturing, the app is getting crashed. Tried some codes from internet, but the problem still persists. What is the problem? I cannot understand...
1 Oct 2015 by Srimoyee Sarkar
previous one: if (requestCode == CAMERA_REQUEST && resultCode == Activity.RESULT_OK) { Bitmap photo = (Bitmap) data.getExtras().get("data"); ////////////////////////PROBLEM: APP GETTING CRASHED HERE img.setImageBitmap(photo); ...
27 Jun 2018 by Jordan Nash
IndexOutOfBoundsException "Index was outside the bounds of the array." This occurs when I try to append another item to the listview. It seems that when we add a new item, the array’s size gets reset to whatever we appended to it. So the size of the counter then becomes bigger than the array....
27 Jun 2018 by OriginalGriff
The simplest solution is not to use an array: use a List instead: List temp = new List); List arryFilePaths = new List); You can then do this: temp.Add(single_file); ... arryFilePaths.Add(single_file); And teh system will handle it all for you behind the...
20 Jun 2011 by asma89
i want to apply undo and redo operations on button in a photo editing application in c# programming , so that when i click undo the action on image in pictureBox is retrieved.any one know how to apply that?
20 Jun 2011 by Abhinav S
This s[^] has an undo implementation. You could consider using the logic behind this.
20 Jun 2011 by Pete O'Hanlon
It really depends on how you've written your application. One way to do this is to apply a command pattern to the application where each action on your image is applied as a command. Undoing the operation would remove the last command, and redoing it would reapply the last command.If that...
20 Jun 2011 by BobJanova
There are two ways to do undo/redo. Both involve an undo stack.In the first, you simply put the state before the action on the stack. This is very easy, but can get memory intensive quickly, particularly for an image editor where the state is an image which can be megabytes in size.In...
20 Jun 2011 by Sergey Alexandrovich Kryukov
Yes. You need to program this feature from scratch. For example, store a circular ring of few past steps in editing in a queue of images. For example, if you use bitmap, use System.Collections.Generic.Queue. Each time you commit the change, push newly modified image and remove the oldest...
24 Feb 2011 by Member 7700562
In Windows XP I was able (before upgrading to 7) to open a folder of JPGs (or TIFs) and arrange them while in view thumbnails or view slide-show by dragging them around and placing them in whatever sequence I chose. They then had to be renamed (alphabetically or numerically)to maintain that...
4 Mar 2011 by Anish K S
I have one asp.net page with only one image on that page. When the page loads the rest of the contents in the page become visible only after the image finishes loading.Can I load the page completely before image loads completely?[orig. title]I have one asp.net page , One image...
4 Mar 2011 by Riaan Booyzen
If you mean after page is loaded on the client, then you can use this ASP.NET Ajax code: (It requires that you have a asp:ScriptManager on the page to enable AJAX)var prm = Sys.WebForms.PageRequestManager.getInstance(); if(prm) prm.add_pageLoaded(...
31 Oct 2018 by Niced Moral
I'm trying to retrieve image from database through using dataset to show in grid view, DB saved as byte What I have tried: ...
31 Oct 2018 by Niced Moral
BC for VB: If e.Row.RowType = DataControlRowType.DataRow Then Dim imageControl As System.Web.UI.HtmlControls.HtmlImage = CType(e.Row.FindControl("imageControl"), System.Web.UI.HtmlControls.HtmlImage) If (CType(e.Row.DataItem, DataRowView))("imagedata") IsNot...
29 Feb 2012 by Member 8593633
Hello!I'm using it on a project, and when I run localhost it works, but when I run from the serverthat does not get the image of the flash file.HTML
8 Feb 2014 by SOHAM_GANDHI
Quote:[^] [^] [^] refer these articles
18 Apr 2014 by Mohamad M. Mohamad
So after I upload the image to the server i store the image path on server in database and I want when open the page on load to display the image but when i set the imageurl the image is still not displayed. my path is like C:\Uploads\Photo\XYZ.jpgmyImg.ImageUrl = "C:\Uploads\Photo\XYZ.jpg"
18 Apr 2014 by kedar001
you should save your file in virtual directory only and to access check this...
10 May 2017 by Member 11795696
I'm trying to create an ImageMap that changes as users mouse over certain parts of the image. I have the following ImageMap where users are able to click on a color and go to a different page:http://i.stack.imgur.com/hXJSC.png[^]I created 4 additional images that are all the same size,...
26 Jun 2015 by Sergey Alexandrovich Kryukov
The functionality you want has nothing to do with ImageMap.You could use image map, but only for the hit test, which is actually the sole purpose of the image map. Unfortunately, your event is not click, but mouse over. Also, it's really bad to run it on server, because it will cause the...
26 Jun 2015 by Shibiny
please try java script or css.........................