<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Trouble with scanline</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">I'm trying to convert a c++ example to python, but I'm stuck on how to convert the result of the scanline method to QRgb in python. These are the 2 lines I'm having trouble with.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">1. p = result->scanLine(r1) + col*4;</FONT>
<BR><FONT SIZE=2 FACE="Arial">2. QRgb* pixel1 = (QRgb*)(buffer.scanLine(y1)) + x;</FONT>
</P>
<BR>
</BODY>
</HTML>