LEADTOOLS Support
General
General Questions
HOW TO: Use OwnerDraw in RasterImageList with Skewed DPI Images
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#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
LEADTOOLS Support
General
General Questions
HOW TO: Use OwnerDraw in RasterImageList with Skewed DPI Images
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.