Malprogramm - Zoom im DC



  • Hallo,

    im Paint kann man doch das Bild bis zu 8 fach vergrößern. Was für eine Technik wird da hergenommen. Gibt es für den Zoom eine Funktion oder wird das Bitmap einfach nur vergrößert gezeichnet?

    thx im voraus



  • Was MSPaint angeht vermute ich ein simples StretchBlt()

    MfG SideWinder



  • MSDN ist oft eine gute Fundstelle um sowas zu finden:

    BOOL StretchBlt(
    
        HDC hdcDest,	// handle of destination device context 
        int nXOriginDest,	// x-coordinate of upper-left corner of dest. rect. 
        int nYOriginDest,	// y-coordinate of upper-left corner of dest. rect. 
        int nWidthDest,	// width of destination rectangle 
        int nHeightDest,	// height of destination rectangle 
        HDC hdcSrc,	// handle of source device context 
        int nXOriginSrc,	// x-coordinate of upper-left corner of source rectangle 
        int nYOriginSrc,	// y-coordinate of upper-left corner of source rectangle 
        int nWidthSrc,	// width of source rectangle 
        int nHeightSrc,	// height of source rectangle 
        DWORD dwRop 	// raster operation code 
       );
    

    EDIT: da war ein Fremd-Mod schneller 🙄


Anmelden zum Antworten