Feng Yuan (袁峰)

CLR, Performance, Debugging, Parallel Computing, WPF, XPS, GDI, GDI+, Printing (www.fengyuan.com)

Posts
  • Feng Yuan (袁峰)

    XPS document with 100,000 pages?

    • 2 Comments
    Once a simple document format like XPS is created, it takes on a life of its own. Seeing the beauty of XPS, people are converting documents from differenent sources to XPS. People are trying to create XPS document with 10,000 pages, and even pushing for...
  • Feng Yuan (袁峰)

    Source code for Windows Graphics Programming: Win32 GDI and DirectDraw

    • 4 Comments
    Source code for Windows Graphics Programming: Win32 GDI and DirectDraw used to be on http://safariexamples.informit.com/0130869856/ . But link has been broken for quite sometimes. I've received a few emails from readers who has lost the CD of the book...
  • Feng Yuan (袁峰)

    Convert XAML Flow Document to XPS with Style (multiple page, page size, header, margin)

    • 28 Comments
    XPS is a fixed document format in which pages are pre-formated to a fixed page sixe. On the opposite of the spectrum, WPF provides flow document which can be paginated dynamically in XAML viewer. To bridge the two, WPF provides features to convert a flow...
  • Feng Yuan (袁峰)

    Anatomy of STL Vector: Data Size

    • 1 Comments
    In the last post, we discussed the cost of using STL vector to module size. Now let’s take a look at how STL vector manages its data. Dia2Dump (Source code available in Microsoft Visual Studio 8\Dia SDK\Samples\Dia2Dump directory) shows the following...
  • Feng Yuan (袁峰)

    Anatomy of STL vector: Module Size

    • 3 Comments
    If you need a dynamic array in C++, a widely used class is the vector template class in STL. There are even books recommending replacement of plain C++ array with STL vector. This series is going to look at how STL vector is implemented and what...
  • Feng Yuan (袁峰)

    Printing documents to Microsoft XPS Document Writer without user interaction

    • 19 Comments
    Now that the XPS storm has been started, people are generating XPS documents from all kinds of sources. Among different ways of XPS generation, the easily way is still through printing to the Microsoft XPS Document Writer (the MXDW printer driver). ...
  • Feng Yuan (袁峰)

    Modifying XPS Document: Add Watermark

    • 21 Comments
    Windows Platform Foundation has provided easy APIs and solutions for XPS document generation, visualization and printing. But often time, after XPS documents are generated, we would like to modify it in certain way. The scenario I'm trying to demonstrate...
  • Feng Yuan (袁峰)

    Trobleshooting Printing Fidelity Problems

    • 2 Comments
    It's not uncommon to have a print-out from your printer not matching what do you see on screen. Printing is a quite complicated process with multiple players involved. So it's not an easy job to figure out who is at fault, either to find a workaround...
  • Feng Yuan (袁峰)

    GDI Font Installation and Printing

    • 2 Comments
    I learned something new about GDI font installation and printing recently. So if you're use functions like AddFontResourceEx or AddFontMemResourceEx to install fonts in your application and your application supports printing, you may want to continue...
  • Feng Yuan (袁峰)

    XPS at WinHec

    • 3 Comments
    There is a large presence of XPS at Winhec this year, which makes Global Graphics' booth banner very fitting: The XPS workflow demo in Will Poole's keynote speech was a complete success. It demonstrates generation, viewing, sharing, scanning and...
  • Feng Yuan (袁峰)

    Anatomy of Radial Gradient Brush

    • 4 Comments
    WPF(Windows Presentation Foundation) and XPS (Open XML Paper Specification) supports five types of brushes. They are solid color brush, linear gradient brush, radial gradient brush, image brush, and visual brush. This posting will discuss the 'shape'...
  • Feng Yuan (袁峰)

    The difference between an amature and professional plumber

    • 9 Comments
    An amature plumber makes multiple trips to Home Depot to buy supplies, a professional plumber gets supply from his/her truck. An amature plumber listens to whatever advise other people gives, a professional plumber does not need them. An amature...
  • Feng Yuan (袁峰)

    American in Chinese History: Anson Burlingame

    • 3 Comments
    On the eve of Chinese president's visit to United States, I thought it's fitting to discuss some American figures in Chinese History. The first important person is Anson Burlingame. Mr. Anson Burlingame was appointed by Lincoln as minister to Austria...
  • Feng Yuan (袁峰)

    Windows Graphics Programming: Win32 GDI and DirectDraw (ISBN 0130869856) reprint is here !

    • 16 Comments
    Windows Graphics Programming: Win32 GDI and DirectDraw has been out of print for quite sometimes. I tried several times to convince the publisher to reprint it because people are still programming using Win32 API, but they would not do it, quoting that...
  • Feng Yuan (袁峰)

    Bought a new computer: HP Media Center PC m7334n with AMD Athlon 64 X2 3800

    • 16 Comments
    My desktop computer at home is about five years old, so I thought it's time to buy myself a new computer. There are two features I'm particularly interested in new computer: media center PC and AMD 64-bit CPU. So I looked around for a Media Center PC...
  • Feng Yuan (袁峰)

    The benefit of having your own office

    • 2 Comments
    The benefit of having your own office, or at least one of them, is that you can have your own $29 IKEA armchar:
  • Feng Yuan (袁峰)

    Know a good book on performance?

    • 5 Comments
    If you know a good book or more on performance, please recommend. I'm aware of the following books which have some topics related to software performance: Dov Bulka, David Mayhew, Efficient C++: Performance Programming Techniques , 2000. This...
  • Feng Yuan (袁峰)

    Windows Graphics Programming: Win32 GDI and DirectDraw (ISBN 0130869856) gets reprinted

    • 7 Comments
    Just worked out a deal with the publisher. Windows Graphics Programming: Win32 GDI and DirectDraw (ISBN 0130869856) is getting reprinted ! So readers can get them without paying high price (current price on amazon.com is $150). The books will be ready...
  • Feng Yuan (袁峰)

    Zoran announces XPS rendering support for printers

    • 1 Comments
    Sunnyvale, Calif. - January 17, 2005 - Zoran Corporation (Nasdaq: ZRAN) announced that its IPS/XPS interpreter for Microsoft’s new XPS Document format will be available to printer and multifunction peripheral (MFP) manufacturers through an Early Adopter...
  • Feng Yuan (袁峰)

    Optimize XPS markup

    • 1 Comments
    XPS is hot, so naturally more and more applications will be generating XPS. If your application has access to the XPS Document Writer, then the easiest way to generate XPS is just print to it. But there are cases you may want to generate XPS on your own...
  • Feng Yuan (袁峰)

    Proposal of purchase for a tiny piece of real estate

    • 3 Comments
    Just finished writing first draft of a proposal of purchase, for a tiny piece of real estate, 8 square inch, 9.5-inch high ceiling, on your book shelf.
  • Feng Yuan (袁峰)

    Sell your copy of Windows Graphics Programming: Win32 GDI and DirectDraw

    • 1 Comments
    Just before the new year, I noticed a copy of my book was listed on amazon.com for $160 (the listing price of the book is $60). A few days ago when I checked again, it was gone. Some poor guy or poor company paid more than double the original price of...
  • Feng Yuan (袁峰)

    Seven Year Itch

    • 6 Comments
    Seven years ago, I was working for Hewlett-Packard on its inkjet printer drivers. Having worked on printer drivers for a few years, I felt that I knew something about GDI that other developers would like to know too, and more importantly I wanted to everything...
  • Feng Yuan (袁峰)

    Native Office Support for XPS Annouced

    • 0 Comments
    Office just annouced native/direct support for XPS document in Office 12. Read more about it: Jeff Bell's blog: http://blogs.msdn.com/jeff_bell/archive/2005/10/27/485937.aspx Andy Simonds's blog: http://blogs.msdn.com/andy_simonds/archive/2005/10...
  • Feng Yuan (袁峰)

    Personal Computers 30 Years Ago

    • 2 Comments
    Last week, close to 20,000 Microsoft employees gathered together at Safeco field to celebrate Microsoft's 30 year anniversary. It was a very cheerful event. This prompted me to search trough my collection of books and magazines to find out what was the...
Page 2 of 3 (61 items) 123