﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2918	GDIPlus_GetEncoderParameterList not working on Windows 8.1	m.andreschak@…	Jpm	"Summaration:
- Example Script for GDIPlus_GetEncoderParameterList is not working properly.
- DllCall insinde GDIPlus_GetEncoderParameterList does not fill the buffer supplied.
- GDIPlus_GetEncoderParameterListSize returns correct values nevertheless.

Problem seems to '''not''' occur with windows 7.
I was only able to test '''Windows 7 and Windows 8.1'''.


{{{
#include <GDIPlus.au3>
#include <ScreenCapture.au3>

Global $hBitmap, $g_hImage, $sCLSID, $tParameter, $tParams

_GDIPlus_Startup()

; Create an image to use for paramater lists
$hBitmap = _ScreenCapture_Capture('', 0, 0, 1, 1)
$g_hImage = _GDIPlus_BitmapCreateFromHBITMAP($hBitmap)

; Get Parameter list
$sCLSID = _GDIPlus_EncodersGetCLSID('PNG')
$tParameter = _GDIPlus_EncodersGetParamList($g_hImage, $sCLSID)
$tParams = DllStructCreate($tagGDIPPENCODERPARAMS, DllStructGetPtr($tParameter))

MsgBox(0, '', _
		'Count DllStruct:    ' & DllStructGetData($tParams, 'Count') & @LF & _
		'Count Function:    ' & _GDIPlus_EncodersGetParamListSize($g_hImage, $sCLSID))
}}}
"	Bug	closed	3.3.13.20	Standard UDFs	3.3.12.0	None	Fixed		
