hi,
I want to draw Bitmap A over Bitmap B. Bitmap A has string A on it and Bitmap B has red color rectangle on it. when i draw Bitmap A over Bitmap B, i will see string A on a red color rectangle. Now, when i brush Bitmap B with greed color. then draw Bitmap A over Bitmap B, i will see string A on a green color rectangle.
My question is:
when i try to change string A to string B on Bitmap A, i dont know how to do it. In a normal way, i will brush Bitmap A with some background color , then draw a new string B on it. But i dont know what background color that Bitmap A has because when i create Bitmap A, i did not specify any background color for it.
if i brush Bitmap A with any color and draw string B on it, then when i draw Bitmap A over Bitmap B, i will not see the color rectangle of Bitmap B.
I have tried to use BitmapA.GetPixel() to get the background color of Bitmap A and brush Bitmap A with this color, then draw string B on Bitmap A. But, it didnt work, i saw both string A and string B over each other.
Can anyone help me out?
thanks
I want to draw Bitmap A over Bitmap B. Bitmap A has string A on it and Bitmap B has red color rectangle on it. when i draw Bitmap A over Bitmap B, i will see string A on a red color rectangle. Now, when i brush Bitmap B with greed color. then draw Bitmap A over Bitmap B, i will see string A on a green color rectangle.
My question is:
when i try to change string A to string B on Bitmap A, i dont know how to do it. In a normal way, i will brush Bitmap A with some background color , then draw a new string B on it. But i dont know what background color that Bitmap A has because when i create Bitmap A, i did not specify any background color for it.
if i brush Bitmap A with any color and draw string B on it, then when i draw Bitmap A over Bitmap B, i will not see the color rectangle of Bitmap B.
I have tried to use BitmapA.GetPixel() to get the background color of Bitmap A and brush Bitmap A with this color, then draw string B on Bitmap A. But, it didnt work, i saw both string A and string B over each other.
Can anyone help me out?
thanks