Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, February 10, 2010 6:21:05 AM(UTC)


Groups: Registered, Tech Support, Administrators
Posts: 764

The RasterImageList control (and RasterThumbnailBrowser that inherits it) allows the customer to do custom drawing of the items if you set the RasterImageList.ViewStyle property to RasterImageListViewStyle.OwnerDraw.  However, it can be difficult to draw the correct size when an image has a skewed DPI (e.g. 200x100).  Our tools have already done all the math for you and will return the correct sizes.  Attached is a C# 2005 project that uses LEADTOOLS 16.5 to accomplish this goal.  The main functions and properties used are:

- RasterImageList.ViewStyle
- RasterImageList.UseDpi
- RasterImagelist.DrawItem event
- RasterImage.GetImageWidthDpi

- RasterImage.GetImageHeightDpi
File Attachment(s):
NET - v16 - RIL UseDpi.zip (61kb) downloaded 25 time(s).

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.032 seconds.