Login  
Search All Forums
Dart Home | PowerWEB Zoom for ASP.NET | Custom Development Reply | PowerWEB Zoom for ASP.NET Topics | Forums   
AuthorForum: PowerWEB Zoom for ASP.NET
Topic: Why use LoadImage()?
earniep

From: Tualatin, OR USA
Posts: 14
Member Since: 07/02/08
posted July 2, 2008 2:14 PM

I'm populating the PowerWebZoom control (below).
//photosPaths is ArrayList with paths to images.
for (Int32 i = 0; i < photosPaths.Count - 1; i++)
    {
      pwz_product.LoadImage(photosPaths[i].ToString());
    }

And then I set the first image.

pwz_product.SourceImage = photosPaths[0].ToString();

I only did this because of the example given in the documentation.

If I'm only going to set the first image and then change it when clicking a button, why not just change the "SourceImage" property?
Why use LoadImage()?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 3, 2008 9:56 AM

Hi,
SourceImage is perfect for images on disk and for images that already have tiles.

LoadImage allows you to open images contained within streams and byte arrays.

There is nothing wrong with using the SourceImage property exclusively, if it does what you need.

-ken
Reply | PowerWEB Zoom for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX