Search the Community
Showing results for tags 'msdn'.
Found 3 results
Hello, Do you have any idea to resize Vector graphic using some maths trick? It's example to create Vector image 10x10px and write A Local $a10x10 = [ _ 1,1,1,1,1,1,1,1,1,1, _ 1,1,1,0,0,0,0,1,1,1, _ 1,1,0,0,1,1,0,0,1,1, _ 1,1,0,1,1,1,1,0,1,1, _ 1,1,0,1,1,1,1,0,1,1, _ 1,1,0,0,0,0,0,0,1,1, _ 1,1,0,1,1,1,1,0,1,1, _ 1,1,0,1,1,1,1,0,1,1, _ 1,0,0,0,1,1,0,0,0,1, _ 1,1,1,1,1,1,1,1,1,1 _ ] Local $oVector = ObjCreate("WIA.Vector.1") If Not IsObj($oVector) Then ConsoleWrite("+++ Error " & @error & " durning create a Vector.object." & @CRLF) Exit EndIf Local $iBlue = 0xFF0000FF ; ARGB color Local $iWhite = 0xFFFFFFFF ; adding pixels to vector For $i = 0 To UBound($a10x10) - 1 Local $iPixel = $a10x10[$i] Local $iColor = $iBlue If $iPixel = 0 Then $iColor = $iWhite $oVector.Add($iColor) Next ; create a img 10x10 px Local $oImg = $oVector.ImageFile(10, 10) ; path to file Local $sPath = @ScriptDir & "\Vector.bmp" ; delete previous file if exits. FileDelete($sPath) ; save img to script direction. $oImg.SaveFile($sPath) ; show result, you have to use 800% size to see effects. ShellExecute("Vector.bmp")
It appears that the MSDN site has given up totally on supporting XP or assisting those that are still on it. If you do a search for any control reference information on MSDN you'll see that almost all mention of XP has been expunged, and Vista is usually listed as the minimum supported client now. I noticed this the other day when looking up the EM_SETCUEBANNER information, and I've seen it on every listview variable/macro I've looked up as well. So, don't be surprised if you see topics with remarks that say such-and-such setting or variable doesn't work on XP because MSDN says it's Vista+. Also, don't be surprised if in the future that some of the Windows APIs drop backwards compatibility for supposedly unsupported clients such as XP.
How to use this example in AutoIt ? MSDN: Developing a Per-Monitor DPI-Aware WPF Application MSDN: Per-Monitor Aware WPF Sample Below other useful links: MSDN: DPI Tutorial sample MSDN: High DPI MSDN: User Interface - High DPI Awareness mLipok