Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LoadPicture()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00327684
Message ID:
00328055
Views:
20
>>How can I get a list of all the properties from an object returned by LoadPicture function?
>>So far I have found Height and Width but they don't seem to be in Pixel's.
>> I don't know what the Scalemode is.
>
>Hi Chuck,
>
>The following is from message#325707 by Bela Bodecs:
>
>"LoadPicture() picture function gives back an object reference, with the type of picture.
>
>It is a iPicture OLE interface. It has the following properties:
>
>Handle, hPal, Type, Width, Height, CurDC, KeepOriginalFormat, Attributes
>
>It has the following methods:
>
>Render(), SelectPicture() PictureChanged(), SaveAsFile()"
>
>hth,

dear George and Chunk,

LoadPicture() picture function gives back an object reference, with the type of picture.

It is a iPictureDisp OLE interface. It has the following properties:

Handle, hPal, Type, Width, Height

So, to have the handle of loaded picture:

oObj=LoadPicture(...)
?oObj.Handle

That's all!

bb

P.S.:George, In the original thread, I posted two different message, the first one was an accident only. That one, contained a partly wrong info. The sentences you included in your previous thread answer, belongs to the accidental one. So this is the correct answer. (The difference comes from the interfacetype. I tested, and LoadPicture gives back an IPictureDisp interface, not IPicture interface. Of course, one can obtain the IPicture interface from the IPictureDisp)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform