magickSetSecurityPolicy method

bool magickSetSecurityPolicy(
  1. String securityPolicy
)

Sets the ImageMagick security policy. It returns false if the policy is already set or if the policy does not parse.

Implementation

bool magickSetSecurityPolicy(String securityPolicy) => using(
      (Arena arena) => _magickWandBindings.MagickSetSecurityPolicy(
        _wandPtr,
        securityPolicy.toNativeUtf8(allocator: arena).cast(),
      ),
    ).toBool();