Image objects

  • Thread starter Thread starter Nak
  • Start date Start date
N

Nak

Hi there,

This might sound like a silly question but, technically could an image
object be used for any image format? For example if I were to make plugins
for my application, could they be made to return a specific image format as
an image object, such as PSD (Only for viewing purposes). Thanks in advance

Nick.
 
If you are talking about inheriting from an Image object, which is what
you'd need to do, then no.

Microsoft have programmed the Image object to be inheritable, but inheritors
need to define a constructor that calls the base constructor, and the base
constructor is declared as Friend, which means only the classes that reside
in the 'Image' assembly can inherit from Image.

Sorry :)

--
Happy to help,
-- Tom Spink
([email protected])

"Go down with your server"

http://dotnetx.betasafe.com >> On The Mend

Please respond to the newsgroup,
so all can benefit
 
Tom,

I didnt say anything about inheriting from it, I know that it is not
possible. I wanted to know
This might sound like a silly question but, technically could an image
object be used for any image format? For example if I were to make
plugins for my application, could they be made to return a specific image format
as an image object, such as PSD (Only for viewing purposes). Thanks in
advance

Can the image object do this? Maybe an example of it being used to
store an "unsupported" format would be excellent, like PSD for example.

Nick.
 
Nak said:
Maybe my question was phrased wrong, or comletely wrong, one of
the two.
Havr you seen any examples of let's say a PSD image being opened in
VB.NET and stored as an image object? or any other "non natively
supported format". Thanks

Haven't heart of PSD yet, so, sorry, no solution.
 
Haven't heart of PSD yet, so, sorry, no solution.

??? Have you been living down a hole or something?

PSD = Photoshop Document

as in Adobe Photoshop! Thanks anyway, looks like I'm going to have to look
around for the answer to this one.

Nick.
 
Nak said:
??? Have you been living down a hole or something?


Yes, deep in the jungles of Germany I'm the first one using PPPoSS (point to
point over smoke signals).

PSD = Photoshop Document

as in Adobe Photoshop! Thanks anyway, looks like I'm going to have to
look around for the answer to this one.

Do you know the extension "RDK"?
 
Do you know the extension "RDK"?

Nope never used it, what's it for? Or are you reversing roles?

Nick.
 
Nak said:
Nope never used it, what's it for? Or are you reversing roles?

a) I don't know b) yes


Short: I don't use Photoshop but that's no crime. => don't be so surprised.
:)
 
Technically yes, but you have to do the conversion.

What you could do is to create a new bitmap object, then make a method that
opens your PSD parses it and draws to that bitmap.

--
Happy to help,
-- Tom Spink
([email protected])

"Go down with your server"

http://dotnetx.betasafe.com >> On The Mend

Please respond to the newsgroup,
so all can benefit
 
PSD files can have multiple layers and include vector data. Bitmaps
cannot
include vector data. You need to convert it (loosing information).

Yeah that's okay, because I only want to "view" not edit :-) So basically
rendering the image to a bitmap would be perfect!!

Nick.
 
Hello,

Nak said:
Yeah that's okay, because I only want to "view" not edit :-) So basically
rendering the image to a bitmap would be perfect!!

I think that's not trivial. Maybe you can extract the thumbnail image
(often really ugly) and display it.

HTH,
Herfried K. Wagner
 
Hi,

I do actually want to use the fullsize image for my image viewer, and
the way I have just built my plugin interface I need to load the whole image
every time anyway. But thanks for the suggestion, food for thought :-)

Nick.
 
Thanks Herfied :-) This should be fun!

Fun? Huh! Well, it looks like I have probably chosen the hardest file
type to read, the image is not always stored in it's rendered state for each
layer as they can contain effects, meaning that I would have to apply the
effects myself. Oh well, maybe I should leave PSD alone, but I will get it
to load other types or there was no point in me just making a plugin engine.
As I understand it, the .NET Framework supports the following images (or
loosely anyway)...

bmp,
emf,
exif,
gif,
ico,
jpeg,jpg,
png,
tif,tiff,
wmf

I have tried all except exif and they worked fine, some png files opened
strangely and some gif files would not open depending on their compression.
Another image viewer called Irfanview manages to support something like 53
different formats, I know that I would be able to work out how to open that
many with mine, but the potential is there at least. Any ideas on what
formats I most definitely should have a try at anyone? Cheers in advance
:-)

Nick.
 
How about MP3's? j/k

LBM may be worth a try, it's old, but maybe... It's Deluxe Paint's format.

Also EPS, AI and PS, the Encapsulated PostScript formats may be worth a try.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit
 
Back
Top