BitmapDataExtensionsMakeTransparent(IReadWriteBitmapData, ParallelConfig) Method
If possible, makes the background of this
bitmapData transparent, taking the bottom-left pixel as the background color.
If the
bitmapData does not support transparency, then the pixels that have the same color as the bottom-left pixel will be set
to the
BackColor of
bitmapData.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public static bool MakeTransparent(
this IReadWriteBitmapData bitmapData,
ParallelConfig? parallelConfig
)
<ExtensionAttribute>
Public Shared Function MakeTransparent (
bitmapData As IReadWriteBitmapData,
parallelConfig As ParallelConfig
) As Boolean
public:
[ExtensionAttribute]
static bool MakeTransparent(
IReadWriteBitmapData^ bitmapData,
ParallelConfig^ parallelConfig
)
[<ExtensionAttribute>]
static member MakeTransparent :
bitmapData : IReadWriteBitmapData *
parallelConfig : ParallelConfig -> bool
- bitmapData IReadWriteBitmapData
- The IReadWriteBitmapData to make transparent.
- parallelConfig ParallelConfig
- The configuration of the operation such as parallelization, cancellation, reporting progress, etc.
When Progress is set in this parameter,
then this library always passes a DrawingOperation instance to the generic methods of
the IAsyncProgress interface.
If , then the degree of parallelization is configured automatically.
Boolean, if the operation completed successfully.
, if the operation has been canceled and the
ThrowIfCanceled property
of the
parallelConfig parameter was
.In Visual Basic and C#, you can call this method as an instance method on any object of type
IReadWriteBitmapData. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).