I wonder the way using Maketransparent in Uipath

Hello

I am trying to change white color into transparent in an bitmap image.

I find out bitmap.MakeTransparent Method in .NET

But it doesn’t work like this
Assign [ BitmapImage = BitmapImage.MakeTransparent() ]

So would you please let me know
How I have to use MakeTransparent Method in Uipath

Thanks a lot!!

1 Like

Hey @Jihwan

Please find the way below.

Also, attaching the workflow…
nmnithinkrishna_bitmapbgtransparent_uipath.zip (2.0 KB)

Hope this helps

Thanks
#nK

1 Like

Wow!!! It works!!!

Thank you so much!!
T.T

1 Like

methods with no return values (sub - subroutine) cannot be used within an assign activity
we can use:

  • invoke method - sometimes also the reference got lost
  • invoke code
2 Likes

Thank you so much!!!

hi, Is it possible to remove background color in image.
I tried but didn’t work for me.

1 Like

Hey @harji.5

Kindly check this once - I wonder the way using Maketransparent in Uipath - #2 by Nithinkrishna

Thanks
#nK

It doesn’t work for my image

1 Like

Hey @harji.5

Please post your image …

Thanks
#nK

1 Like

Is the background white here ?

Background is some other color (Pink or Brown) and can have shadow sometimes and lines .
Would like to remove all background from image and make it white or transparent.

1 Like

And will it have only some small text in it ?

Thanks
#nK

yes. font can be large as well. But yes some text in it.

1 Like

Hey @harji.5

What I feel is may be we need to do OCR retrieve text and paste it in a white background something like that !

Thanks
#nK

is it get OCR text activity you are referring to. some times it doesn’t read text properly as its hand written.