Converting Imagelist Picture To Binary Data - VB - Net Dream - In.code
Converting Imagelist Picture To Binary Data - VB - Net Dream - In.code
Curtis Rutland
Re: Converting Imagelist picture to binary data
Posted 20 July 2010 - 01:31 PM
Instead of loading it from le, you would get it from
Clipboard.GetImage(). That should be literally all the difference. Or
you could change it to get it from your image list.
The point was to show you how to handle an image once you have
it, not how to get it. A System.Drawing.Image is an image, and it
doesn't matter if it comes from le, clipboard, or ImageList. Code Snippets
I generalized it a bit. You'll have to customize the code yourself. C Snippets
This post has been edited by insertAlias: 20 July 2010 - 01:35
PM C++ Snippets
didza
Re: Converting Imagelist picture to binary data Java Snippets
Posted 20 July 2010 - 10:42 PM
Ok thanks man, you've been of great help. let me work on it. Thanks Visual Basic Snippets
again.
C# Snippets
didza
Re: Converting Imagelist picture to binary data VB.NET Snippets
Posted 21 July 2010 - 12:29 PM
Hi again. this is what I have done ASP.NET Snippets
Dim img As Image
Dim ms As New MemoryStream
img = Clipboard.GetImage() PHP Snippets
img.Save(ms, img.RawFormat)
Dim imgData = ms.ToArray Python Snippets
But I am getting "Value cannot be null. Parameter name: encoder"
Error. at - img.Save(ms, img.RawFormat) Ruby Snippets