Skip to content

Commit 5676471

Browse files
authored
native: remove out exception from DrawingSettings.SetAffine (#1519)
1 parent f912e0a commit 5676471

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/Magick.NET/Native/Settings/DrawingSettings.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public static class X64
128128
[DllImport(NativeLibrary.X64Name, CallingConvention = CallingConvention.Cdecl)]
129129
public static extern void DrawingSettings_SetFillPattern(IntPtr Instance, IntPtr value, out IntPtr exception);
130130
[DllImport(NativeLibrary.X64Name, CallingConvention = CallingConvention.Cdecl)]
131-
public static extern void DrawingSettings_SetAffine(IntPtr Instance, double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY, out IntPtr exception);
131+
public static extern void DrawingSettings_SetAffine(IntPtr Instance, double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY);
132132
[DllImport(NativeLibrary.X64Name, CallingConvention = CallingConvention.Cdecl)]
133133
public static extern void DrawingSettings_SetStrokeDashArray(IntPtr Instance, double* dash, UIntPtr length);
134134
[DllImport(NativeLibrary.X64Name, CallingConvention = CallingConvention.Cdecl)]
@@ -241,7 +241,7 @@ public static class ARM64
241241
[DllImport(NativeLibrary.ARM64Name, CallingConvention = CallingConvention.Cdecl)]
242242
public static extern void DrawingSettings_SetFillPattern(IntPtr Instance, IntPtr value, out IntPtr exception);
243243
[DllImport(NativeLibrary.ARM64Name, CallingConvention = CallingConvention.Cdecl)]
244-
public static extern void DrawingSettings_SetAffine(IntPtr Instance, double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY, out IntPtr exception);
244+
public static extern void DrawingSettings_SetAffine(IntPtr Instance, double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY);
245245
[DllImport(NativeLibrary.ARM64Name, CallingConvention = CallingConvention.Cdecl)]
246246
public static extern void DrawingSettings_SetStrokeDashArray(IntPtr Instance, double* dash, UIntPtr length);
247247
[DllImport(NativeLibrary.ARM64Name, CallingConvention = CallingConvention.Cdecl)]
@@ -354,7 +354,7 @@ public static class X86
354354
[DllImport(NativeLibrary.X86Name, CallingConvention = CallingConvention.Cdecl)]
355355
public static extern void DrawingSettings_SetFillPattern(IntPtr Instance, IntPtr value, out IntPtr exception);
356356
[DllImport(NativeLibrary.X86Name, CallingConvention = CallingConvention.Cdecl)]
357-
public static extern void DrawingSettings_SetAffine(IntPtr Instance, double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY, out IntPtr exception);
357+
public static extern void DrawingSettings_SetAffine(IntPtr Instance, double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY);
358358
[DllImport(NativeLibrary.X86Name, CallingConvention = CallingConvention.Cdecl)]
359359
public static extern void DrawingSettings_SetStrokeDashArray(IntPtr Instance, double* dash, UIntPtr length);
360360
[DllImport(NativeLibrary.X86Name, CallingConvention = CallingConvention.Cdecl)]
@@ -1531,26 +1531,24 @@ public void SetFillPattern(IMagickImage value)
15311531
}
15321532
public void SetAffine(double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY)
15331533
{
1534-
IntPtr exception = IntPtr.Zero;
15351534
#if PLATFORM_AnyCPU
15361535
if (Runtime.IsArm64)
15371536
#endif
15381537
#if PLATFORM_arm64 || PLATFORM_AnyCPU
1539-
NativeMethods.ARM64.DrawingSettings_SetAffine(Instance, scaleX, scaleY, shearX, shearY, translateX, translateY, out exception);
1538+
NativeMethods.ARM64.DrawingSettings_SetAffine(Instance, scaleX, scaleY, shearX, shearY, translateX, translateY);
15401539
#endif
15411540
#if PLATFORM_AnyCPU
15421541
else if (Runtime.Is64Bit)
15431542
#endif
15441543
#if PLATFORM_x64 || PLATFORM_AnyCPU
1545-
NativeMethods.X64.DrawingSettings_SetAffine(Instance, scaleX, scaleY, shearX, shearY, translateX, translateY, out exception);
1544+
NativeMethods.X64.DrawingSettings_SetAffine(Instance, scaleX, scaleY, shearX, shearY, translateX, translateY);
15461545
#endif
15471546
#if PLATFORM_AnyCPU
15481547
else
15491548
#endif
15501549
#if PLATFORM_x86 || PLATFORM_AnyCPU
1551-
NativeMethods.X86.DrawingSettings_SetAffine(Instance, scaleX, scaleY, shearX, shearY, translateX, translateY, out exception);
1550+
NativeMethods.X86.DrawingSettings_SetAffine(Instance, scaleX, scaleY, shearX, shearY, translateX, translateY);
15521551
#endif
1553-
CheckException(exception);
15541552
}
15551553
public void SetStrokeDashArray(double[] dash, int length)
15561554
{

0 commit comments

Comments
 (0)