Print Page | Close Window

ImageManagerIcon not scaling

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=8415
Printed Date: 18 June 2025 at 9:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ImageManagerIcon not scaling
Posted By: ijwelch
Subject: ImageManagerIcon not scaling
Date Posted: 12 October 2007 at 4:42am
Hi,

The following code always returns the original image width:

ImgMgrControl.Icons.GetImage(ICONID, 48).Width

I understand the image should be scaled to width=48.

Also, the Scale method does nothing.

Thanks



Replies:
Posted By: Oleg
Date Posted: 12 October 2007 at 8:36am
Hi,
 
Yes. width parameter help to find closest icon but icon will not be scaled.
 
when you draw icon set size you need to draw and it will draw it scaled.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ijwelch
Date Posted: 12 October 2007 at 8:46am
So will Scale method be fixed?

I want to load image (size not known at design-time) then copy to report control imagemanager scaling to, say, 32 px.

eg,
Load png (could be any size eg 256 px)
Show preview/thumbnail in report control at 32px.

Any ideas?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net