Wrox Programmer Forums
BOOK: Visual Basic 2005 Programmer's Reference
This is the forum to discuss the Wrox book Visual Basic 2005 Programmer's Reference by Rod Stephens; ISBN: 9780764571985
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Basic 2005 Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 18th, 2006, 12:59 PM
Authorized User
Join Date: Mar 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Image Processing

Hi Rod

I have been reading the chapter on Image Processing to see if it can help with something I would like to do. Looks like the bitmap class is what I need to work with but.....

Here is what I want to do.

Create a class which contains the image file name, an key value, and the image itself as a bitmap (could be a jpg, gof or bmp)

Create an arraylist or similar to collect a bunch of these

Serialize them to disk

De-sericalize them back to the original class and use the information about the file name to add to a hashtable based on the key, plus store the image as a file on disk.

I guess this depends on the bitmap class being serializable but I cannot see that it is

thanks in advance

Jon Masterson
Jon Masterson
Old May 19th, 2006, 01:24 AM
Authorized User
Join Date: Mar 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts

OK figured it out - bitmaps are serializable so creating a serializable class which contains the classification data and the bitmap works just fine. My test code imports a directory of images into a hashtable. serializes it to disk, deserializes the file and copies the images to a new folder. I notice that bitmap.save will just overwrite without warning if the file already exists so I need to add code for that

Jon Masterson

Similar Threads
Thread Thread Starter Forum Replies Last Post
image processing OCR tasleemarif C++ Programming 1 August 13th, 2007 11:09 AM
Document Image Processing (DIP) - changing image f ALcom Access 0 March 27th, 2006 06:10 AM
wat wrong of my code (image processing) ck C++ Programming 0 March 3rd, 2005 09:52 AM
image processing ck C++ Programming 0 February 27th, 2005 03:33 AM
image processing ck Visual C++ 0 February 27th, 2005 03:31 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.