<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 13: How to use Graphics32 routines on a regular Canvas?</title><link>https://sourceforge.net/p/graphics32/support-requests/13/</link><description>Recent changes to 13: How to use Graphics32 routines on a regular Canvas?</description><atom:link href="https://sourceforge.net/p/graphics32/support-requests/13/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 13 Apr 2011 08:14:18 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/graphics32/support-requests/13/feed.rss" rel="self" type="application/rss+xml"/><item><title>How to use Graphics32 routines on a regular Canvas?</title><link>https://sourceforge.net/p/graphics32/support-requests/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In the Graphics32 documentation there is an example of manipulation of TBitmap32 content using TCanvas routines, but I would like to do the opposite way: I have a HDC from a TListView control for example (Win API event), which I can assign to a TCanvas, and I would like to use TBitmap32 routines on it. Is it possible?&lt;/p&gt;
&lt;p&gt;I tired the following code, but it does not work (the image is unchanged):&lt;br /&gt;
var Bmp: TBitmap32;&lt;br /&gt;
begin&lt;br /&gt;
Bmp:= TBitmap32.Create();&lt;br /&gt;
Bmp.Canvas.Handle:= DC;&lt;br /&gt;
ColorToGrayscale(Bmp, Bmp);&lt;br /&gt;
ApplyLUT(Bmp, Bmp, DarkTable);&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kazimierz Król</dc:creator><pubDate>Wed, 13 Apr 2011 08:14:18 -0000</pubDate><guid>https://sourceforge.net628e2038418ce556945ff8043fc0b893bcac7ca5</guid></item></channel></rss>