Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Imagelist
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00580356
Message ID:
00581382
Views:
37
Hi!

>Hi!
>>BTW, I already added the wish to wishes list - it is about use of picture objects in VFP controls (alternative to the Picture property that accepts only filepath) as well as some other enhancement related to the pictures.
>
>I have recently found that VFP picture reference (created by LOADPICTURE()) in fact is standard OLE Picture object (with IPicture interface, StdPicture in VB). For instance, one can write:
>x = LoadPicture("...")
>? x.Type, x.Height, x.Width
>May be this fact is well-known, but it doesn't mentioned in VFP documentation.

COOL! I did not knew that, though I knew that it is a reference to some sort of standard interface. Now it is also a good way to calculat image size (Before I recommended to load picture into the hidden VFP Image control and then get the image size after auto-resizing of Image control to the size of image). Are these properteis (x.Width and x.Height) reliable in VFP? I just looked to the MSDN for description of IPicture interface and did found a LOT of usful things. Could methods of this object be used too? I specially interested in "PICTURE_TRANSPARENT" attribute and seting palettes, as well as in image GDI handle to tha image data - to use it with API functions.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform