Click here to Skip to main content
15,893,337 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 Updated

Image 

24 Sep 2010 by #realJSOP
Google "C# optical character recognition", or man-up and write some code yourself.BTW, OCR software/libraries are prewtty scarce when you're talking about a language that isn't English.
1 May 2011 by #realJSOP
You can create an image, and then simply write text onto it. I wrote an article that demonstrates how to write text onto a bitmap. You may be able to adjust the code for your purposes.Render Text On A Bitmap (and other stuff)[^]
3 Jul 2011 by #realJSOP
You can't load client-side files unless your app meets a very restricted set of rules.You want to google terms like 0) Isolated Storage - allows Silverlight to store a few MB of data on the client's computer1) cross domain policy file - if your images/files are on the same domain...
29 Jul 2011 by #realJSOP
The only thing I can suggest is that your png image wasn't saved in such a way as to have a transparency color/attribute.
12 Aug 2011 by #realJSOP
To convert a byte array to a BitmapImage object:MemoryStream stream = new MemoryStream(bytearray);BitmapImage image = new BitmapImage();image.SetSource(stream);At this point, you can set your object's Source property to your new BitmapImage object.myImage.Source = image;
21 Sep 2011 by #realJSOP
Save the frames with different names, or release the files handles you're using. Those are your only options.
20 Oct 2011 by #realJSOP
You can leave your data in the access database file and still use it (like you're already doing. As for the images, I don't know if I'd put all of those in your app as resources. Instead, I'd just create a folder with the images in it, and include that folder in your setup project, installing...
6 Aug 2012 by .netHelperClass
Hi iwant to save images in database..i have created the tablecolumn datatype valuesImageID int Not nullImageName varchar(50) NullImage varchar(MAX) NullNow i am inserting the data into the table....ImageID ImageName ...
9 Feb 2021 by 20212a
The url is probably incorrect. Use the developer tools of your browser to see what the url is set to and you'll probably see the issue pretty quickly.
16 Jul 2011 by 204.sharma
Hii, i am trying to display image from Blob datatype of oracle10g in .net windows application.i am using filestream to get the image but the when i set the steam object for display image it show the error (Cannot access a closed file).My code is below.OracleConnection con = new...
12 Sep 2019 by 4bakra
Hello, I'm really green. I want to extract images (JPGs) from Oracle PDB. Table Looks something like this: select * from BOB.USER_ID t LINK_ID ID_SCAN 1 340101001 ... 2 340101002 ... 3 340101003 ... 4 340101004 ... 5 ... If possible, I want...
8 Nov 2010 by 6,921,364 and growing
Hi everyone,Let me explain the scenario.I have to display a page which will show user's personal information along with his profile picture and signature (after log-in).The profile picture and signature are stored in database.I am using 2 Image control on the web page. I am...
17 Sep 2012 by _Amy
Probably you should use a handler to show the image from database. The procedure of mapping the images from handler in repeater is same as gridview.Refer the links below:Using the ASP.NET Repeater Control [^]Inserting images into database and display it in gridview through...
19 Oct 2015 by _Amy
Try this:.tabstyle .ajax__tab_body{ background-image:url('Image/TabBackground.jpg') !important;}--Amy
3 Mar 2014 by _Asif_
instead of writing int values convert it to text and then save it like this. The problem here it is being written as binary format. w.write((pt.x.tostring());
24 Jan 2012 by _Maxxx_
Yes it is possible.I believe what you are asking is for the server-side to generate an image from data - so rather than returning html text, you return a simple page with an image on it - that image containing the text.leaving aside any usability issues, it is not that hard.There's a...
26 Jun 2015 by _Q12_
Bitmap img;//outside current method. private void Form1_Load(object sender, EventArgs e) { pictureBox1.SizeMode = PictureBoxSizeMode.Zoom; img = new Bitmap(file.FullName); if (img.Height >=...
26 Jun 2015 by _Q12_
it seem i got a stroke of geniality...:)i used the three rule.And is working perfectly... yuhoo. uc.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage; img = new Bitmap(item.FullName); uc.pictureBox1.Image = img; ...
20 Apr 2012 by A.Ebrahimi
As my question indicate, I need to show footer in empty gridview but when I put a checkbox and use imageurl with cast to get imageurl from code behind, it raise error, may anyone help me? Here is my code:
20 Apr 2012 by A.Ebrahimi
As I have found the main cause of this error is when table is empty then there is no value to pass to eval and it raise error. So change my question.
22 Oct 2012 by a1mimo
Try this when you get your image from the database//whatever your command isobject Result= command.ExecuteScalar();MemoryStream ms = new MemoryStream();ms = (byte[])result;//pass ms to Handler either by puting it in a function that returns it or whatever you like...
17 Sep 2019 by Aarti Meswania
Hi kjohansen2000, please gothrough below steps, 'implement event "DataBindingComplete" for your dataGridView. In that... 'start a for loop for each row of grid... 'identify your targeted cell value in the row to write if else condition... 'if value is XX then...
19 Nov 2012 by aayu
I have typed 500 pages in notepad by seeing tiff image files. Now I need an software to cross check the notepad with tiff file for errors.Is there any software for cross checking the notepad and image file?
14 Jul 2012 by Abdul Quader Mamun
Use this codeString patha= String.Format(@"{0}\{1}" ,Server.MapPath("images"),"2.jpg"); if (System.IO.File.Exists(patha)) { System.IO.File.Delete(patha); }Thanks,Mamun
20 Jan 2013 by Abed AlSayed
How can I save any control as Image (ex: Inkcanvas or Grid control) with a TRANSPARENT background if the control's background was Transparent? I can do it in WinForms Application and I don't know if it is Possible in...
27 Jan 2013 by Abed AlSayed
Hi, how to make like media player visualizations?, but not in a media element in image or rectangle or any thing. I want to make a video/music player with a visualizations on the bottom of the program(like zune). Or if someone gave me the way to get the values that generate the visualizations....
24 Jul 2010 by Abhinav S
If you are looking at displaying small images (like a preview), you could actually use a listview. See here[^].
11 Sep 2010 by Abhinav S
Maybe something here[^] can help.
21 Oct 2010 by Abhinav S
You can actually use just Expression Blend to implement reflecction.See here[^].
10 Jan 2011 by Abhinav S
This[^] thread might also provide some options.
21 Feb 2011 by Abhinav S
In addition, have a look at this[^] tutorial.
11 Mar 2011 by Abhinav S
This[^] discussion might help.
20 Jun 2011 by Abhinav S
This s[^] has an undo implementation. You could consider using the logic behind this.
1 Sep 2011 by Abhinav S
This[^] talks about an interesting workaround that uses AddRange to make the Listview faster.
10 Oct 2011 by Abhinav S
Try thes links as they are good articles to get you started:Contour Analysis for Image Recognition in C#[^]Image Recognition with Neural Networks[^]As for EMGU download it from sourceforge.net Here.[^] Have a look in the extracted folder and there will be several examples...
16 Oct 2011 by Abhinav S
You need to provide the absolute URL to excel.Have a look here[^] - this should give you an idea on what you need to do.
1 Apr 2012 by Abhinav S
Have a look at a list of all available Image properties here[^].
10 May 2012 by Abhinav S
Some links - http://vbcity.com/blogs/xtab/archive/2009/10/26/wpf-how-to-move-elements-at-runtime.aspx[^]http://blogs.msdn.com/b/jaimer/archive/2007/07/12/drag-drop-in-wpf-explained-end-to-end.aspx[^]http://scottgarland.com/Post/Display/WPF_Drag_and_Drop_Image_Between_Applications[^]Move...
5 Feb 2013 by Abhinav S
When you convert from EMF to WMF, you are converting from a 32bit file to 16bit file - What is WMF?[^].As a result, loss in quality is unavoidable.
3 Jun 2013 by Abhinav S
You can explore iTextSharp[^] for PDF editing.
29 Mar 2014 by Abhinav S
Try the following links -Video[^]C# Save and Load Image from Database[^]Store Images in MSAccess[^]Inserting Images using OLEDB[^]
21 Apr 2014 by Abhinav S
Make sure you have all the right permissions to read the folder where you place the file.Permissions are described here[^],
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#[^].
12 Sep 2010 by Abhishek Sur
Did you see my article on screen capture. http://www.codeproject.com/Articles/91487/Screen-Capture-in-WPF-WinForms-Application.aspx[^]I have also provided you a sample application with my article.
24 Sep 2010 by Abhishek Sur
Use .bckimage { width: 100%; position: absolute; top: 0; left: 0;}whereI hope it works.:rose:
20 Mar 2014 by abhishek.mumbai
Hi GuysI am trying to use external image in SSRS rdl. it is displayed correctly in rdl design windowbut when I try to view in preview the image is not displayed.I have been using the following url to get image (due to security issue I cannnot directly point to...
15 Aug 2011 by Abreemen
My simple problem is the following:When I populate my Treeview on demand I want to show a sort of an in progress icon on the treenode currently beeing populated.I Found for that the solution that I btw like very much:function OnExpandClick(event){ var evt = evt ||...
16 Jun 2014 by Access Guru
try the following codeDim cn As ADODB.ConnectionSet cn = CurrentProject.ConnectionDim RS As ADODB.RecordsetDim mstream As ADODB.StreamDim strQry As StringstrQry="SELECT [picturefieldname] FROM [tablename] WHERE [primaryfieldname]=primaryfieldvalue"Set RS = New...
25 Jul 2013 by adat7378
I have a wcf data service and windows phone 7 client. I need to take customer signature on phone and save it to database. Can you please suggest a good tutorial or advise? Cannot find anything relevant on Google.Thanks.
24 May 2013 by adesewa
THE CODE IS TO LOAD IMAGE FROM TABLE "STAFFPICS" AND IS GIVING PROBLEM AT"PictureBox1.Image = Image.FromStream(stmSTAFF_PICS)PICS)PICS)" SAYING INVALID PARAMETER.HELP ME OUT Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click ...
22 Apr 2022 by ADMGNS
A very simple method to resampling points from a digital image and drawing it as antique mosaics, dots (stippling) and Voronoi cells
23 Jan 2013 by ADotNetDev
Hello, I want to create image editor in asp.net so I am looking for open source image editor control for asp.net. It should work like MS paint which provides add/ edit/ delete text and other images. So can any one help me in this?I search on Google and found some of the image editors but I...
30 Nov 2013 by Afnan_
I'm trying to draw a grayscales image of type 48bppRBG pixel format.I have an array/list of ushort values. These values are the pixels values. So each color(R, G ans B) will have the same pixel value, since it's a grayscale image. In an 24bpp type, these values are scanned then converted to...
31 Oct 2010 by After2050
This article demonstrates how to use images in web and the things you have to take care on using them.
15 Nov 2014 by Afzaal Ahmad Zeeshan
You can look into resources are data on such topics from MSDN. They've got working example on these topics that are helpfull and have comments (on almost each and every line of code they're executing) that explain the code and its usage in the context. Here is the code that converts the...
24 Dec 2014 by Afzaal Ahmad Zeeshan
For me, it won't be wrong, think of an 8-bit image etc, it depends on the quality of the image that is being saved. Images that are of high quality might require more space and meaningly, more data for each of the pixel notation on the screen, that is why most images in low quality would take...
2 Feb 2015 by Afzaal Ahmad Zeeshan
Apart from the SQL Injection problem that others have also mentioned in your query; which makes it a lot vulnerable to any hacker you attempts to break you query to have a look at your under-the-hood stuff. The problem is that the image (object) that you're trying to insert into the table is a...
4 Aug 2015 by Afzaal Ahmad Zeeshan
PHP is a server-side language, it has no control over the web page once it has been rendered. So, you cannot take a screenshot in PHP. :)
20 Aug 2016 by Afzaal Ahmad Zeeshan
This generic exception is the worst exception that one can get while working with graphics objects. It just simply doesn't provide anything at all. Quote:An unhandled exception of type 'System.Runtime.InteropServices.ExternalException' occurred in System.Drawing.dll Additional information: A...
31 Aug 2016 by Afzaal Ahmad Zeeshan
Do you know what image formats[^] actually are? C++ language won't be that much easy to work with in this case. That is why it is always recommended to use a library instead of writing it from scratch. Libraries would let you work with many formats easily. To get an idea of how hard things can...
5 Mar 2017 by Afzaal Ahmad Zeeshan
First of all, we do not provide free code services to your demands. Secondly, the image also does not contain any navigation, just an image and a few white blocks. It does not explain anything at all. Finally, you can look for "css navigation code", and then use them in your...
1 Dec 2017 by Afzaal Ahmad Zeeshan
You are not following up the training I assume, var images=[ "mercedes.jpg", "volkswagen.webp", "toyota.jpg", "subaru.jpg", "audi.jpg" ]; Does not mean that they are available on the machine. To make sure, that they load, you need to put them in the directory "images", which is a subdirectory...
9 Dec 2022 by Afzaal Ahmad Zeeshan
Your question is unclear. The computer world has more than 2 things—while bit states can be only 2; 0, and 1. The concept of images and containers is the same as class and objects. You write the class in your Java file, and when that code runs,...
20 Jan 2014 by agent_kruger
I am using ImageLocation to set image to picturebox but sometimes at first time it shows unknown image sign but after setting it again it shows the image correctly. How to display the image correctly at the first time?andis there an alternate to ImageLocation (i tried to set through...
17 Apr 2014 by agent_kruger
How to set image in crystal report dynamically in c# win. form? Or I want to set image via. passing path to the crystal report to display it in my printing. How to achieve this? Please suggest me a good article or a video?Thanks in advance
24 Dec 2014 by agent_kruger
I want to know that how the storage of an image is determined (the size of an image is determined). i have read some articles but some say that 1 pixel = 1 byte (which according to me should be wrong) and some says it takes 32 bits for high depth image colors. Can somebody explain me how the...
14 Mar 2012 by Ahmed Jubayer
Hi everyone… Can anyone help to take images and save the image to sqlite in android.Retrieve the image and show it in listview. Thanks in advanced… :)Jubayer
18 Mar 2012 by Ahmed Jubayer
Hi, i need a solution for my android project. my problem is i will take a picture of some text and then read the text from the image. or store the text in sqlite. Thanks in advanced… :) Jubayer
16 Oct 2020 by ahmed9100
Just change TextBox to RichTextBox this will work
5 Mar 2017 by ahmed_sa
I work in visual studio 2015 asp.net mvc project i need to make image galary with circle lightreally I cannot know technique i will use(css or flash or what )it found on www.apharmu.com under green menu image galary automatic navigate every certain time can you tell...
12 Oct 2013 by Ajay_Saini
using System;using System.Web;using System.IO;public class Handler : IHttpHandler { public void ProcessRequest (HttpContext context) { Int32 regno; if (context.Request.QueryString["id"] != null) regno =...
8 Oct 2012 by Ajit Kumar Pal
Hi, Can we have some method in C# by which I can compress images and send through URL param to my server ? I want to send images in URL . Please anybody can suggest a good method in C#, asp.net
22 Feb 2012 by ajit_machhe
please provide the few images.
2 Mar 2012 by ajit_machhe
from my point of view...A WPF Custom Control for Zooming and Panning[^]please refer the above link. solution to you problem from my view would be like >>select the rectangle to crop. then save the cropped image then resize the iamage as per your requirement(zoom percent)....
21 Apr 2014 by Ajith K Gatty
HiServer.MapPath("~/upload...
10 Dec 2015 by Akash Gutha
Exploring ways to create abstract images in C#
29 Nov 2020 by akifkemalaksu
My code; foreach (HttpPostedFileBase file in files) { System.Drawing.Image sourceimage = System.Drawing.Image.FromStream(file.InputStream); ..... its containing. } What I have tried: This line I take...
23 Jan 2012 by akul123
I want to add 1000 images (each size is (40 to 100) KB) in a panel at run time in a desktop application. At first user browses all the images and load them on a panel. When it loads images one after another then memory usage shown in the task manager increases rapidly and after a certain number...
14 Feb 2012 by akul123
How to crop an image that is zoomed(zoomed in/out). Cropping works fine when the image is normal, that is not zoomed. I have used a panel whose AutoScroll property is true and a picturebox inside the panel whose sizemode property is AutoSize and BackgroundImageLayout is Tile. Load image: ...
27 Feb 2012 by akul123
I have developed an application that loaded many images in a listview using ImageList in c# .net framework 4. The images are also compressed. When many many images are loaded and compressed then it takes a long time. So I call the method in backgroundworker. In the backgroundworker I had to...
7 Dec 2011 by Al Moje
Hi,Your question is not clear where to get an image to view, either in a virtual folder, database or just using an html code and target the url image in such virtual folder to view an image...I had already made an application as such...You may use a link reference as I do in my...
5 Dec 2010 by Alain Rist
Hi Alijman,Your answer is in MSDN: Developing DPI Aware Applications[^].cheers,AR
17 Feb 2011 by Albin Abel
Instead of using images, you can use resizable graphics. As graphic (vector, not image) holds less data than image, operations would be faster. Take a look here for a resizable graphic with handlersA Resizable Graphical Rectangle [^]
23 Mar 2011 by Albin Abel
This demostrates fitting an image to the picturebox extend, zoom and move by transforming the picturebox device context/ graphics
16 Apr 2011 by Albin Abel
You may use different spatial filters for different directions. If you give weights on the vertical for 3 x 3 or 5 x 5 kernel it masks everything but only shows the vertical lines i.e computation of moments will weighted for only one direction. Same way for horizontal, diagonal etc., assign...
15 Jul 2023 by Alex Jul2023
The output image is majorly white, with some outlines of the edges // Detect edges void edges(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE temporary[height][width]; for (int row = 0; row
14 Jul 2023 by Alex Jul2023
chatgpt helpred me with this one .... The function determineEdges was being passed to image before it was completely formed. So once that function use as a parameter image, image was getting changed and interfering in determineEdges. A silly...
7 Oct 2018 by Alex McAllister
Im trying to create a project where the user has to input a username and password. Its a super simple page where the only things there are an image for the background and two input boxes for a username and password, along with the log in button. I appreciate any help! What I have tried: This...
11 Jul 2013 by Alexander Dymshyts
You need to set binding. This code will make your picture to fit height and width of your source element. var _img = new Image { Stretch = Stretch.Fill, StretchDirection = StretchDirection.Both }; var height = new Binding("ActualHeight") {Source = yourSource };var width = new...
15 Jan 2015 by Ali Al-Masry
hello guys if i send packet with image bytes to server i need to get the only image bytes to convert back to image ...Client side :public class Image : Writer, Interfaces.IPacket{public byte[] Buffer;public byte[] ImageBytes;public Image(){}public void Deserialize(byte[]...
8 Dec 2016 by Ali Majed HA
HelloI have an element in my .html file. When user select his/her image, I get the selected image using JavaScript and send it to controller as JSON:var _Data = { Image = $("#ImageFileUpload").val();and in my controller, I save it in my Data Base:byte[] binData;byte[] byteArrey...
2 Oct 2011 by Ali Tayeh
I'm reading a lot of references about image processing image pattern recognition and understand a lot of concept .its not a homework its my aim in image processing science and its my idea :)regards
6 Jan 2013 by Ali_100
public static void ProcessDirectory(string targetDirectory) { // string[] fileEntries = Directory.GetFiles(targetDirectory, "*.jpg"); var fileEntries = Directory.GetFiles(targetDirectory, "*.jpg"); //if (photos.Count() == 0) //{ // ...
4 May 2014 by Alif Marz
Hi,I have this code about an image in my page. ...
28 Nov 2010 by Alimjan Yasin
I am working on a windows mobile application written with C++ and MFC . I used CTabCtrl to display for dialog within it. and I want to make it looks good decided to display image on tab . but it display not good ,only a parts of image displayed and left and right part of tab item is white ,...
3 Dec 2010 by Alimjan Yasin
dmageiras , could you give me an simple code or could you tell me specificly? how to resize and how should be the image ?
5 Dec 2010 by Alimjan Yasin
I just begin to work on windows mobile application. after I nearly done this work, I tested my program on a phone with windows mobile 6.5. problem is the background image of dialog did not cover the whole as it did when I run the program on computer. I have to make sure that background image...
29 Jul 2011 by All Time Programming
Hello, I have a shapy image that I got to set as backgroundimage of the form. I also got to add components to the form. I can't get rid of the transparent shade - that appears as it is in the form even after using BackColor and TransparentKey is not being of best help. I found...