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. 68 3848
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
(th**********@ntlworld.com)
"Go down with your server" http://dotnetx.betasafe.com >> On The Mend
Please respond to the newsgroup,
so all can benefit
"Nak" <a@a.com> wrote in message
news:ug**************@TK2MSFTNGP09.phx.gbl... 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.
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.
"Tom Spink" <th**********@ntlworld.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl... 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 (th**********@ntlworld.com)
"Go down with your server"
http://dotnetx.betasafe.com >> On The Mend
Please respond to the newsgroup, so all can benefit
"Nak" <a@a.com> wrote in message news:ug**************@TK2MSFTNGP09.phx.gbl... 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.
"Nak" <a@a.com> schrieb 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.
--
Armin
> 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" <a@a.com> schrieb Haven't heart of PSD yet, so, sorry, no solution. ??? 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"?
--
Armin
Really Dumb Kernel
--
Happy to help,
-- Tom Spink
(th**********@ntlworld.com)
"Go down with your server" http://dotnetx.betasafe.com >> On The Mend
Please respond to the newsgroup,
so all can benefit
"Armin Zingler" <az*******@freenet.de> wrote in message
news:#m*************@TK2MSFTNGP12.phx.gbl... "Nak" <a@a.com> schrieb Haven't heart of PSD yet, so, sorry, no solution. ??? 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"?
-- Armin
> Do you know the extension "RDK"?
Nope never used it, what's it for? Or are you reversing roles?
Nick.
"Nak" <a@a.com> schrieb Do you know the extension "RDK"?
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.
:)
--
Armin
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
(th**********@ntlworld.com)
"Go down with your server" http://dotnetx.betasafe.com >> On The Mend
Please respond to the newsgroup,
so all can benefit
"Nak" <a@a.com> wrote in message
news:O4**************@TK2MSFTNGP09.phx.gbl... Hi Tom,
But technically can't ANY image type be converted to be used in a
Bitmap object? If this is the case then I shall just use Bitmap instead of
image, hmmm..... Ever seen any examples of other image types being loaded in
..NET? Cheers again.
Nick.
"Tom Spink" <th**********@ntlworld.com> wrote in message news:ed**************@TK2MSFTNGP09.phx.gbl... The Image object is a basic framework for all the Image types. So, no
you can not do this, without inheriting from the image object. The basic functionality of an Image is inside this object, which is why Bitmap and Metafile inherit from it.
You'd have to write your own handler to open the file, parse it and produce a graphics object for it, and whatnot.
-- Happy to help, -- Tom Spink (th**********@ntlworld.com)
"Go down with your server"
http://dotnetx.betasafe.com >> On The Mend
Please respond to the newsgroup, so all can benefit
"Nak" <a@a.com> wrote in message news:ub**************@tk2msftngp13.phx.gbl... 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.
"Tom Spink" <th**********@ntlworld.com> wrote in message news:OM**************@TK2MSFTNGP10.phx.gbl... > 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 > (th**********@ntlworld.com) > > "Go down with your server" > > http://dotnetx.betasafe.com >> On The Mend > > Please respond to the newsgroup, > so all can benefit > > > "Nak" <a@a.com> wrote in message > news:ug**************@TK2MSFTNGP09.phx.gbl... > > 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. > > > > > >
Thanks Herfied :-) This should be fun!
Nick.
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:ey**************@TK2MSFTNGP10.phx.gbl... Hello,
"Nak" <a@a.com> schrieb: Sounds cool to me, thanks!
You will find the specs of the PSD format at http://www.wotsit.org/ -> search for "PSD".
HTH, Herfried K. Wagner -- MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
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.
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Hello,
"Nak" <a@a.com> schrieb: 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 -- MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Also, Ich verstehe nicht.
--
Happy to help,
-- Tom Spink
(th**********@ntlworld.com)
"Go down with your server" http://dotnetx.betasafe.com >> On The Mend
Please respond to the newsgroup,
so all can benefit
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:#9*************@TK2MSFTNGP12.phx.gbl... Hello,
"Tom Spink" <th**********@ntlworld.com> schrieb: (http://www.acronymfinder.com/af-quer...ct&Acronym=RDK)
"Reload Delay Kit"?!
Regards, Herfried K. Wagner -- MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
> 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.
> different formats, I know that I would be able to work out how to open
that I know that I would NOT be able....
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
"Nak" <a@a.com> wrote in message
news:eu**************@TK2MSFTNGP10.phx.gbl... 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.
Hello,
"Tom Spink" <th**********@ntlworld.com> schrieb: Also, Ich verstehe nicht.
Ich auch nicht.
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Hello,
"Nak" <a@a.com> schrieb: 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 :-)
I hope you will have enough time to post to the ngs while implementing a PSD
viewer in .NET.
See you later,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Nick
I am not sure, and from images I am only a viewer, but I thought there is
not one PSD format, there are versions, but I am not sure, mabye you can
verify that when you are busy.
And don't forget to give those nice ansers in the group
Cor
> LBM may be worth a try, it's old, but maybe... It's Deluxe Paint's format.
Hmm, are you sure it was/is Deluxe Paint's format? I thought it was IFF, I
used to have Deluxe Paint on the Amiga you see :-) But maybe that will be a
good start :-) I'll see if I can do at least one and then work from there
:-) Cheers
Nick.
I so wish they would use XML!!!! I mean for christ sake, why does
everything have to be so secretive?!? Software would be so much better if
the file formats were at least all open source :-)
Nick.
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:e0**************@TK2MSFTNGP09.phx.gbl... Hello,
"Nak" <a@a.com> schrieb: Oh well, maybe I should leave PSD alone, but I will get it
It's a proprietary file format, as silly as the doc file format.
;-)))
HTH, Herfried K. Wagner -- MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Hey I'm not going anywhere yet, sheesh! I have been programming all day and
writing in the newsgroup too every time I take a break. But yes you are
right, there are several versions of the PSD file format and it isn't very
well documented from what I can see, apart from it being an apparent
nightmare to read, it even has an image stored in it that should represent
the final "rendered" image but apparently it doesn't allways contain the
correct data, fat lot of good that is! Anyway, I know 1 thing for sure, no
PSD, I'm not clever enough! :-(
Nick.
"Cor" <no*@non.com> wrote in message
news:3f***********************@reader21.wxs.nl... Nick I am not sure, and from images I am only a viewer, but I thought there is not one PSD format, there are versions, but I am not sure, mabye you can verify that when you are busy.
And don't forget to give those nice ansers in the group Cor
Well, Paint Shop Pro says that LBM was Deluxe Paint Format, it said that IFF
was Amiga format... ;-)
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
"Nak" <a@a.com> wrote in message
news:uV**************@TK2MSFTNGP09.phx.gbl... LBM may be worth a try, it's old, but maybe... It's Deluxe Paint's
format. Hmm, are you sure it was/is Deluxe Paint's format? I thought it was IFF, I used to have Deluxe Paint on the Amiga you see :-) But maybe that will be
a good start :-) I'll see if I can do at least one and then work from there :-) Cheers
Nick.
Hello,
"Tom Spink" <th**********@ntlworld.com> schrieb: XML, what about MSIL, there's a standard format. A CPU- Independant execution code. I think it's marvellous.
Huh... Images which contain "scripts" stored in MSIL.
;-)))
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
> Huh... Images which contain "scripts" stored in MSIL.
Nasty, soon images will give you viruses!
Nick.
Hello,
"Nak" <a@a.com> schrieb: Huh... Images which contain "scripts" stored in MSIL.
Nasty, soon images will give you viruses!
.... maybe we will only store VB .NET code inside the images.
;-)))
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Hello,
"Tom Spink" <th**********@ntlworld.com> schrieb: Well, Paint Shop Pro says that LBM was Deluxe Paint Format, it said that IFF was Amiga format... ;-)
LBM = Deluxe Paint LBM File Format
IFF = EA IFF Standard for Interchange File Format
;-)
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Hello,
"Kevin Yu" <v-****@online.microsoft.com> schrieb: See http://msdn.microsoft.com/library/de...us/gdicpp/GDIP lus/AboutGDIPlus/WhatsNewInGDIPlus/NewFeatures.asp for more information.
So, if you want to show a PSD file, you have to write a decoder of PSD format, to convert it into BMP or other GDI+ supported format. And then, load it into the Image object. On the other hand, if you want to write to
a PSD file, you also have to write an encoder.
I think, that's the "problem".
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
> ... maybe we will only store VB .NET code inside the images.
Hmmm, maybe accounting packages?
Nick.
> I think, that's the "problem".
It is now I've seen how complicated it is. I wish the documentation for
file types was better and that they actually followed some standards, but
you seem to find variations of almost every format, it's rediculous!
Nick.
> IFF = EA IFF Standard for Interchange File Format
Yeah, it was commonly used on the Amiga, especially for game graphics. I
remember it well, in the days of Amos....
Nick.
> remember it well, in the days of Amos....
And the "Shoot Em Up Construction Kit", abbreviated to
SEUCK
Nick.
Hello,
"Nak" <a@a.com> schrieb: ... maybe we will only store VB .NET code inside the images.
Hmmm, maybe accounting packages?
Sorry, I do not understand...
;-)
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Hello,
"Nak" <a@a.com> schrieb: I think, that's the "problem".
It is now I've seen how complicated it is. I wish the documentation for file types was better and that they actually followed some standards, but you seem to find variations of almost every format, it's rediculous!
Did you have a look if someone else has written a library (maybe a COM
component) do read and display PSD files?
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Hello,
"Tom Spink" <th**********@ntlworld.com> schrieb: Almost as bad as RDK... ;-)
Resource Description Kit?
;-)))
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Hello,
"Nak" <a@a.com> schrieb: IFF = EA IFF Standard for Interchange File Format
Yeah, it was commonly used on the Amiga, especially for game graphics. I remember it well, in the days of Amos....
I didn't know that before because I never had an AMIGA.
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
> I didn't know that before because I never had an AMIGA.
You missed out :-) They were great fun, you can get excellent Amiga
emulators (Winaue I think is one) that are capable of running floppy images
of the games, you can emulate any Amiga you want, even how much memory
and/or hard drive it has. Quite fun if you like that sort of thing :-)
Nick.
> Sorry, I do not understand...
I thought seeing as Accounting packages are so easy to program, why not
stick one in an image, just for the hell of it! :-) That way people could
be charged "per-view" of an image, think of the $$$ Microsoft, there's an
incentive for you!!
Nick.
> Did you have a look if someone else has written a library (maybe a COM component) do read and display PSD files?
Yeah I'm looking all over the place, I have found C++ code and some dead VB6
code that doesn't work very well. The thing is that the image format is so
complex and not well documented that even commercial implementations don't
work 100%!
Nick.
Hello,
"Nak" <a@a.com> schrieb: I thought seeing as Accounting packages are so easy to program, why not stick one in an image, just for the hell of it! :-) That way people could be charged "per-view" of an image, think of the $$$ Microsoft, there's an incentive for you!!
LOL
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
> I am too young.
Uh oh, I remember them, and you look older than me :-s I'll have a look for an emulator. Yesterday I set up Windows 3.11 +
Visual Basic 2.0 in an emulator.
ERROR: Unable to display rest of message
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:ug**************@TK2MSFTNGP12.phx.gbl... Hello,
"Nak" <a@a.com> schrieb:
I didn't know that before because I never had an AMIGA. You missed out :-)
I am too young.
They were great fun, you can get excellent Amiga emulators (Winaue I think is one) that are capable of running floppy images of the games, you can emulate any Amiga you want, even how much memory and/or hard drive it has. Quite fun if you like that sort of thing :-)
I'll have a look for an emulator. Yesterday I set up Windows 3.11 +
Visual Basic 2.0 in an emulator.
;-)))
Regards, Herfried K. Wagner -- MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
> I am too young.
Wait, how old are you?? I'll have a look for an emulator. Yesterday I set up Windows 3.11 +
Visual Basic 2.0 in an emulator.
Windows 3.11 in an emulator?? How did you manage that one, I could write
Windows 3.11 in VB.NET in 3 lines of code...
While OperatingSystemStillRunning
If(userActivity() > -1) Then
Call blueScreenOfDeath
Else
Call sleep(5000000)
End if
End While
Nick.
Hello,
"Tom Spink" <th**********@ntlworld.com> schrieb: I am too young.
Uh oh, I remember them, and you look older than me :-s
;-))) I'll have a look for an emulator. Yesterday I set up Windows 3.11 + Visual Basic 2.0 in an emulator.
ERROR: Unable to display rest of message
???
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Hello,
"Nak" <a@a.com> schrieb: I am too young. Wait, how old are you??
21
Windows 3.11 in an emulator?? How did you manage that one, I could write Windows 3.11 in VB.NET in 3 lines of code...
While OperatingSystemStillRunning If(userActivity() > -1) Then Call blueScreenOfDeath Else Call sleep(5000000) End if End While
*grrr*
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
I'm not even going to comment about Windows 3.11. It was (is?) a cool
operating system. There are some caves that still use it to track Stalagmite
formation.
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:#1**************@TK2MSFTNGP10.phx.gbl... Hello,
"Tom Spink" <th**********@ntlworld.com> schrieb: I am too young.
Uh oh, I remember them, and you look older than me :-s
;-)))
I'll have a look for an emulator. Yesterday I set up Windows 3.11 + Visual Basic 2.0 in an emulator.
ERROR: Unable to display rest of message
???
Regards, Herfried K. Wagner -- MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
> I'm not even going to comment about Windows 3.11. It was (is?) a cool operating system. There are some caves that still use it to track
Stalagmite formation.
Hmmmmmmmm.................. That's i n t e r e s t i n g.........
It's still pants and always was in my eyes!
Nick.
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
It seems you are not enabling Option Strict. Enable it in the project
properties and the compiler might find the error for you. Jobs a good'n!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
So why is it that I can remember Amigas, and I'm 17?? Infact I used to have
an Amiga. There was a good version of BASIC on it. I also still have a ZX
Spectrum lying about somewhere....
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
"Nak" <a@a.com> wrote in message
news:#T**************@tk2msftngp13.phx.gbl... 21
Snap! :-)
Nick.
This discussion thread is closed Replies have been disabled for this discussion. Similar topics
4 posts
views
Thread by Michele Petrazzo |
last post: by
|
4 posts
views
Thread by Dennis Allen |
last post: by
|
2 posts
views
Thread by Don Tucker |
last post: by
|
2 posts
views
Thread by Andreas Viklund via DotNetMonster.com |
last post: by
|
4 posts
views
Thread by NASAdude |
last post: by
|
62 posts
views
Thread by ivan.leben |
last post: by
|
6 posts
views
Thread by Rob |
last post: by
| | |
4 posts
views
Thread by Ryan Knopp |
last post: by
| | | | | | | | | | |