Click to return to the Reusing Browser Technology home page    
IHTMLImgElement::get_loop...     IHTMLImgElement::get_mime...     IHTMLImgElement Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLImgElement::get_lowsrc Method


Retrieves the URL of a lower-resolution image to display.

Syntax

HRESULT get_lowsrc(
    BSTR *p
);

Parameters

p
Address of a string (BSTR) variable that receives the URL.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

Setting the SRC attribute in code has the side-effect of actually starting to load the new URL into the image area (and aborting the transfer of any image data that is already loading into the same area). Therefore, you should alter the lowsrc property before setting the src property. If the URL in the src property refers to an image that is not the same size as the image cell it is loaded into, the source image is scaled to fit.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLImgElement::put_lowsrc Method


Sets the URL of a lower-resolution image to display.

Syntax

HRESULT put_lowsrc(
    BSTR v
);

Parameters

v
String (BSTR) that specifies the URL to set.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

Setting the SRC attribute in code has the side-effect of actually starting to load the new URL into the image area (and aborting the transfer of any image data that is already loading into the same area). Therefore, you should alter the lowsrc property before setting the src property. If the URL in the src property refers to an image that is not the same size as the image cell it is loaded into, the source image is scaled to fit.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.