Re: Out of Memory when editing graphic...
- From: "Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 18 Apr 2006 16:03:53 +0200
It should work just fine with VS2005 I think.
Just add a reference to the DLL in the .NET folder.
For other information you'll need to read the help in the Freeimage library
because although I know of it's existence I am unfamiliar with the product.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Wade" <wnederveld@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23xNuzf$XGHA.4988@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for the info, but as I said I new to VB 2005 express, so I may be
asking some stupid questions...
I don't know how to include or use the dll (assuming that I use the dll in
the Dist folder) in my VB code - I can't add it as a reference. Also, in
the Wrapper folder, there is a FreeImage.NET folder (Do I use this instead
of the dll in the Dist folder?) and in that is a src folder which contains
a build.bat and a couple of .cs (C#) files. It looks like the batch file
tries to create a dll using a c# compiler, but I'm using VB, so it doesn't
work. If I install C# 2005 express, would I then be able to create a dll
that would work in VB? Or am I just plain out of luck in trying to use
FreeImage with VB 2005?
Thanks again.
"Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23H7ZoX%23XGHA.4432@xxxxxxxxxxxxxxxxxxxxxxx
You may have better luck with FreeImage which is a native library with a
.NET wrapper I beleive.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Wade" <wnederveld@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:Ol15Ft8XGHA.3532@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have code that adds a BarCode to a scanned image that is stored in a
SQL database. It works fine for scanned images that are 8.5 x 11, but I
also have some images that are 24x36. When I try to add the barcode to
these larger images I get the Out of Memory error.
I put the image on a picturebox (which is on a Panel so I can scroll
around). I allow the user to select an area on the picturebox to place
the barcode. I set the image to a graphic (g), add the barcode (using
g.drawline), then when I reset the picturebox image to the updated image
(bitmap with the barcode included), I get the error on the larger
images.
The PixelFormat of these images are 32bppArgb and the size of the
smaller images are 3300x2550 pixels, and the larger are 7200x10800 -
obviously these are huge (4 bytes * 7200 * 10800 = 311,040,000 bytes -
the original TIF files were around 800K)
What are better ways to accomplish this task? Try to use a smaller
PixelFormat?...somehow load only parts of the image into the
picturebox?...other techniques?
Note, I am fairly new to VB 2005 (Express), and still learning so please
forgive me if these questions have been asked before - I've done quite a
bit of searching (msdn, google, newsgroups) and haven't found much on
this specific error using dotnet 2, VB 2005 and images.
Thanks in advance.
.
- References:
- Out of Memory when editing graphic...
- From: Wade
- Re: Out of Memory when editing graphic...
- From: Bob Powell [MVP]
- Re: Out of Memory when editing graphic...
- From: Wade
- Out of Memory when editing graphic...
- Prev by Date: Re: overlaying text on Windows Media Player
- Next by Date: Re: Drawing text that can be selected and copied into the clipboard.
- Previous by thread: Re: Out of Memory when editing graphic...
- Next by thread: can we make a simple ms paint like interface with asp2.0
- Index(es):
Relevant Pages
|