yes, I know you have to dispose of the image after the use, I was commenting out the code trying to figure out what was going on.
So I tried Saving the Image to demonstrate what I am seeing, however, when i save the image, the image does not display incorrectly any more.
Code:
Private Function getBitMap(ByVal BottomImage As Bitmap, ByVal CloneFirst As Boolean) As Bitmap
Dim CopiedBottomImage As Bitmap = DirectCast(BottomImage.Clone(), Bitmap)
Dim CopiedImageGraphics As Graphics
Dim otherImage As Bitmap
If CloneFirst Then
otherImage = DirectCast(BottomImage.Clone(), Bitmap)
CopiedImageGraphics = Graphics.FromImage(CopiedBottomImage)
Else
CopiedImageGraphics = Graphics.FromImage(CopiedBottomImage)
otherImage = DirectCast(BottomImage.Clone(), Bitmap)
End If
otherImage.Dispose()
CopiedImageGraphics.Dispose()
'Fixes the Problem
CopiedBottomImage.Save(SAVE_IMAGE_PATH)
Return CopiedBottomImage
End Function