88 TRACE(
"GdiplusStartupInput %d %p %d %d\n",
input->GdiplusVersion,
89 input->DebugEventCallback,
input->SuppressBackgroundThread,
90 input->SuppressExternalCodecs);
92 if(
input->GdiplusVersion < 1 ||
input->GdiplusVersion > 2)
95 if(
input->SuppressBackgroundThread){
165 REAL center_x, center_y, rad_x, rad_y, cos_start, cos_end,
166 sin_start, sin_end,
a, half;
171 center_x =
x1 + rad_x;
172 center_y =
y1 + rad_y;
180 a = 4.0 / 3.0 * (1 -
cos(half)) /
sin(half);
186 pt[1].X = cos_start -
a * sin_start;
187 pt[1].Y = sin_start +
a * cos_start;
191 pt[2].X = cos_end +
a * sin_end;
192 pt[2].Y = sin_end -
a * cos_end;
195 for(
i = (write_first ? 0 : 1);
i < 4;
i ++){
196 pt[
i].X =
pt[
i].X * rad_x + center_x;
197 pt[
i].Y =
pt[
i].Y * rad_y + center_y;
217 stretched += ((
REAL)revs_off) *
M_PI * 2.0;
227 REAL end_angle, start_angle, endAngle;
229 endAngle = startAngle + sweepAngle;
234 start_angle = startAngle;
238 if( sweepAngle > 0.0 )
240 if (start_angle >= endAngle)
break;
241 end_angle =
min(start_angle +
M_PI_2, endAngle);
245 if (start_angle <= endAngle)
break;
246 end_angle =
max(start_angle -
M_PI_2, endAngle);
252 start_angle +=
M_PI_2 * (sweepAngle < 0.0 ? -1.0 : 1.0);
255 if (
i == 0)
return 0;
267 return ((
color & 0x0000ff) << 16) +
269 ((
color & 0xff0000) >> 16);
279 if ((
color & 0xff000000) == 0xff000000)
return 0;
306 if((
dx == 0.0) && (
dy != 0.0))
344 FIXME(
"Unhandled unit type: %d\n",
unit);
367 FIXME(
"Unhandled unit type: %d\n",
unit);
385 xdiff = pts[2].
X - pts[0].
X;
386 ydiff = pts[2].
Y - pts[0].
Y;
389 *
x1 = pts[1].
X - tension * xdiff;
390 *
y1 = pts[1].
Y - tension * ydiff;
391 *
x2 = pts[1].
X + tension * xdiff;
392 *
y2 = pts[1].
Y + tension * ydiff;
408 if(
path->datalen == 0){
411 path->pathdata.Points = heap_alloc_zero(
path->datalen *
sizeof(
PointF));
414 path->pathdata.Types = heap_alloc_zero(
path->datalen);
415 if(!
path->pathdata.Types){
421 else if(
path->datalen -
path->pathdata.Count <
len){
436 BYTE *dst_bits,
INT dst_stride,
const BYTE *src_bits,
INT src_stride)
441 const BYTE *
src=src_bits+
y*src_stride;
478 if (!rc)
return "(null)";
484 if (!
pt)
return "(null)";
_STLP_DECLSPEC complex< float > _STLP_CALL cos(const complex< float > &)
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
valarray< _Tp > atan2(const valarray< _Tp > &__x, const valarray< _Tp > &__y)
static BOOL heap_free(void *mem)
static void * heap_realloc(void *mem, size_t len)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
const char * wine_dbg_sprintf(const char *format,...)
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
#define HeapFree(x, y, z)
void free_installed_fonts(void)
GpStatus WINGDIPAPI GdipDeletePath(GpPath *path)
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
void WINGDIPAPI GdipFree(void *ptr)
static const REAL mm_per_inch
GpStatus hresult_to_status(HRESULT res)
static void unstretch_angle(REAL *angle, REAL rad_x, REAL rad_y)
void delete_element(region_element *element)
Status WINAPI GdiplusStartup(ULONG_PTR *token, const struct GdiplusStartupInput *input, struct GdiplusStartupOutput *output)
void convert_32bppARGB_to_32bppPARGB(UINT width, UINT height, BYTE *dst_bits, INT dst_stride, const BYTE *src_bits, INT src_stride)
const char * debugstr_rectf(const RectF *rc)
BOOL lengthen_path(GpPath *path, INT len)
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
void calc_curve_bezier(const GpPointF *pts, REAL tension, REAL *x1, REAL *y1, REAL *x2, REAL *y2)
ULONG WINAPI GdiplusShutdown_wrapper(ULONG_PTR token)
REAL units_scale(GpUnit from, GpUnit to, REAL dpi)
const char * debugstr_pointf(const PointF *pt)
GpStatus WINAPI GdiplusNotificationHook(ULONG_PTR *token)
static void add_arc_part(GpPointF *pt, REAL x1, REAL y1, REAL x2, REAL y2, REAL start, REAL end, BOOL write_first)
COLORREF ARGB2COLORREF(ARGB color)
void calc_curve_bezier_endp(REAL xend, REAL yend, REAL xadj, REAL yadj, REAL tension, REAL *x, REAL *y)
static Status WINAPI NotificationHook(ULONG_PTR *token)
REAL gdiplus_atan2(REAL dy, REAL dx)
static const REAL point_per_inch
void *WINGDIPAPI GdipAlloc(SIZE_T size)
HBITMAP ARGB2BMP(ARGB color)
REAL pixels_to_units(REAL pixels, GpUnit unit, REAL dpi)
void WINAPI GdiplusNotificationUnhook(ULONG_PTR token)
INT arc2polybezier(GpPointF *points, REAL x1, REAL y1, REAL x2, REAL y2, REAL startAngle, REAL sweepAngle)
REAL units_to_pixels(REAL units, GpUnit unit, REAL dpi)
static void WINAPI NotificationUnhook(ULONG_PTR token)
static INT gdip_round(REAL x)
static REAL deg2rad(REAL degrees)
void init_generic_string_formats(void) DECLSPEC_HIDDEN
void free_generic_string_formats(void) DECLSPEC_HIDDEN
@ UnsupportedGdiplusVersion
GLint GLint GLint GLint GLint x
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
GLclampf GLclampf GLclampf alpha
GLint GLint GLint GLint GLint GLint y
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
GLboolean GLboolean GLboolean GLboolean a
GLenum GLenum GLenum input
GLsizei const GLfloat * points
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat token
_Check_return_ _CRT_JIT_INTRINSIC double __cdecl fabs(_In_ double x)
png_const_structrp png_const_inforp int * unit
NotificationUnhookProc NotificationUnhook
NotificationHookProc NotificationHook
BITMAPINFOHEADER bmiHeader
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2