Win32 Halftone Functions

Win32 Programming


  • 1. problems with GDI+ and tiff images
    I am using GDI+ to load a tiff image and write a string to it and save the tiff image to another file. I can save the image with only LZW Compression and not abel to save with CCITT4 compression. If I use CCITT4 compression I get an invalid paramter error when saving file. The file saved with LZW compression has different resolution and tags then the orignal image. Is there a way to save the image with the same tags as the orignal image. Thanks, -Asfar
  • 2. GDI+ increasing file size
    Hi, I am opening and saving tiff image using GDI+ but the file size is much greater then the orignal image. Any idea on how to save with the the same size? Thanks, -Asfar
  • 3. [possibly OT] about Intel C++ Compiler
    Hello, I am looking for a Usenet group which discusses compiling with the Intel C++ compiler on Windows using MSVC ver. 6 as a backend together with the STLPort standard library. There is a forum on the Intel website, but I am having some login problems. Also, there is a forum on sourceforge devoted to STLPort. However, the combination ICL/STLPort doesn't seem too popular, although I think it has great potential. Has anyone reading here worked with this combination of compiler/STL on Windows before? I did my early Windows programming with the OpenWatcom compiler together with STLPort 3.1 (I believe). But you can download Visual C++ version 8 for free and when you download the SDK along with it you have all you need to program Windows applications.
  • 4. how to print area filled by pattern brush
    I'm working for the printing of a Cad system,in which we used DDB and DIB pattern brush largely,but when i print an area filled by pattern brush,i got a black area, my codes as forllowing: DDB one: pDC->SetMapMode(MM_LOENGLISH); CBitmap bmp; bmp.LoadBitmap(IDB_BITMAP1); CBrush br(2,RGB(255,0,0)); pDC->FillRect(CRect(10,-10,500,-500),&br); DIB one: pDC->SetMapMode(MM_LOENGLISH); HRSRC hRes; // Global handles to bitmap resource. HGLOBAL hData; void* hLockedData; CBrush brush; // Find the resource handle. hRes = ::FindResource(AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_BITMAP1), RT_BITMAP); if (hRes != NULL) { // Lock and Load (or Load and Lock). if (((hData = ::LoadResource(AfxGetResourceHandle(), hRes)) != NULL) && ((hLockedData = ::LockResource(hData)) != NULL)) { // Initialize the brush. brush.CreateDIBPatternBrush((const void*)hLockedData, DIB_RGB_COLORS); // Select the brush into the device context. CBrush* pOldBrush = pDC->SelectObject(&brush); // Draw. pDC->Rectangle(50, -50, 2000, -2000); // Restore the original device context. pDC->SelectObject(pOldBrush); // Free the resource. ::FreeResource(hLockedData); } } can any one help

Win32 Halftone Functions

Postby U2tlZXQ » Thu, 31 Jan 2008 07:40:04 GMT


I notice that print drivers, through the DDK, have access to some pretty 
neat halftone functions, with various halftone patters like these...


Is it possible to access these same halftone patterns throguh the regular 
Win32 API or SDK? I am not writing a driver, but I am trying to add halftone 
capabilities to an old legacy C Win32 application, and I thought there might 
be a way to leverage these pre existing microsoft halftone functions in the 

Is it possible to get these same patterns through BitBlt, or StretchBlt, etc?

Thanks in advance, Skeet

Return to Win32 Programming


Who is online

Users browsing this forum: No registered users and 51 guest