• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 131
  • Last Modified:

Opening a directory at Once and altering files

I need to open a whole directory at once (not just one file) that all have the same extension (.bmp) and alter the pictures (make them transparent, then save to a new file).  Is there a way to do this that any of you know about?  Thanks
0
peterma
Asked:
peterma
  • 2
1 Solution
 
ebelusaCommented:
peterma:
  You'll need to open each file one by one. A quick [albeit dirty] way to do this is set a DirList control to filter only the .bmp files in the .Path directory, and then open each file from that list. In terms of making them transparent, that's up to you - do BMP's even support transparency? If you need sample code, I'll provide it.
-Benjamin Stiglitz
0
 
petermaAuthor Commented:
I'll work on it by myself, but if you could provide some sample code that would be great.
0
 
KDivadCommented:
I believe I solved that problem from your other question. And actually, ebelusa put pretty much the same thing I did, but the DirList box should have been a FileList box. The DirList box doesn't give you file names.
0
 
petermaAuthor Commented:
Like I said before, I don't think i'll be able to do any of what i really intended to do in VB.  I can't create a transparent bitmap..they don't support it.  I have to change them all to Icons, and use those in my application. any thoughts?
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now