You can do, for example, the opposite: first, create a bigger bitmap, to fit the RTF content. When the image is created, you can re-sample it down the way you want. For this purpose, create a new image of required size and obtain the instance of the class
System.Drawing.Graphics
from this bitmap, to draw on it:
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.fromimage.aspx[
^].
(I'm pretty sure this technique is demonstrated in the article you used of its source code.)
When, this is done, draw the first bitmap on a target bitmap with proper scaling using one of the methods
System.Drawing.Graphics.DrawImage
.
Probably, this is not the only method, as you could scale the RTF content in first place, but the method I described is the most universal. It is also used for
anti-aliasing of graphics (if this part is unclear, I can explain).
You can also ask your questions to the author of the article (by the way, next time, provide a link to all the material you reference). To do so, load the page of the article, locate the section "Comments and Discussions" and hit "Add a Comment or Question" to post your question. The author of the article will get a notification and a change to answer you.
—SA