Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - ImageManagerIcon not scaling
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ImageManagerIcon not scaling

 Post Reply Post Reply
Author
Message
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Topic: ImageManagerIcon not scaling
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.