Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12016
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: Anyway to use a picture object as an image source in HTA? |
| Date | 2018-10-18 14:21 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <pqaj1b$l0m$1@dont-email.me> (permalink) |
| References | <dp1647m5ao68.197l55sm8nvmu.dlg@40tude.net> <pq8b7c$km1$1@dont-email.me> <x0spk09zocb0.1gr5c0s5e8kf7$.dlg@40tude.net> |
"JJ" <jj4public@vfemail.net> wrote
| > A small addendum to that last post. I've never been
| > clear about the actual difference between IPicture,
| > StdPicture and Picture. StdPicture seems to be the same
| > as Picture and perhaps a subset of IPicture.
|
| `IPicture` is an interface to access a picture object.
| `StdPicture` is a class name for picture objects.
| `Picture` is the picture object itself.
|
If you look in stdole2.tlb you'll see that IPicture
exposes a "superset" of functionality, but doesn't
provide a Dispatch interface, so it's not visible to
script. In other words, StdPicture and IPicture are
both interfaces, but StdPicture is dual (typekind
coclass) while IPicture is not. IPicture provides only
a vtable interface for early binding. StdPicture
provides a dispatch interface but only exposes a
limited subset of IPicture.
Picture seems to be just another name for StdPicture,
depending on context. (Neither is really a picture object.
They're both just an object that abstract access to image
data.)
In VB a PictureBox Picture is a StdPicture, but in code
it's called just a "Picture", for convenience. If you look
them up you'll find they both point to the same thing
and have the same properties. I'm not sure, but I'm
guessing the "Picture" name is probably only valid in a
VB context.
They all refer to a COM wrapper around an image.
I don't understand how that works, but I'm guessing
it really is a wrapper in the sense that it wraps
something like a DIB and makes the file format
transparent, so that one can do things like load
or save different image formats while treating them
as simply "images", with the wrapper managing
conversion.
Not that that does you any good. :)
I remember years ago IE used to come with custom controls.
I used to use one called iemenu.ocx. It provided a system-
style menu in a webpage. But they were phased out when
ActiveX went out of favor.
And there's webvw.dll, left over
from Active Desktop. That can display an image thumbnail,
but only loaded from a file. I guess that makes sense. Anyone
dealing with something like a StdPicture is not likely to be using
scripted controls.
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Anyway to use a picture object as an image source in HTA? JJ <jj4public@vfemail.net> - 2018-10-18 02:40 +0700
Re: Anyway to use a picture object as an image source in HTA? "Mayayana" <mayayana@invalid.nospam> - 2018-10-17 17:37 -0400
Re: Anyway to use a picture object as an image source in HTA? JJ <jj4public@vfemail.net> - 2018-10-19 00:18 +0700
Re: Anyway to use a picture object as an image source in HTA? "Mayayana" <mayayana@invalid.nospam> - 2018-10-17 17:56 -0400
Re: Anyway to use a picture object as an image source in HTA? JJ <jj4public@vfemail.net> - 2018-10-19 00:18 +0700
Re: Anyway to use a picture object as an image source in HTA? "Mayayana" <mayayana@invalid.nospam> - 2018-10-18 14:21 -0400
Re: Anyway to use a picture object as an image source in HTA? "Mayayana" <mayayana@invalid.nospam> - 2018-10-18 10:48 -0400
Re: Anyway to use a picture object as an image source in HTA? JJ <jj4public@vfemail.net> - 2018-10-19 00:18 +0700
Re: Anyway to use a picture object as an image source in HTA? "Mayayana" <mayayana@invalid.nospam> - 2018-10-19 10:25 -0400
Re: Anyway to use a picture object as an image source in HTA? JJ <jj4public@vfemail.net> - 2018-10-20 07:19 +0700
Re: Anyway to use a picture object as an image source in HTA? "Mayayana" <mayayana@invalid.nospam> - 2018-10-19 22:44 -0400
csiph-web