[英]when displaying the image in Crystal report background text is black Color
i written text on a picture by VB.NET after save picture to my pc is good but my issue when displaying the image in Crystal report background text is black Color I want the background white writing 将图片保存到PC后,我在VB.NET上的图片上写了文字,但是在Crystal Report背景文字中显示图像时,我遇到的问题是黑色。我想要背景白色书写
On Error Resume Next
My.Computer.FileSystem.DeleteFile(DbPath + "\Pictures\" + "orign" + ".jpg")
PictureBox2.Image.Save(DbPath + "\Pictures\" + "orign" + ".jpg", Imaging.ImageFormat.Jpeg)
'End If
Dim bmp = Bitmap.FromFile(DbPath + "\Pictures\" + "orign" + ".jpg")
Dim newImage = New Bitmap(bmp.Width, bmp.Height + 40)
Dim gr = Graphics.FromImage(newImage)
gr.DrawImageUnscaled(bmp, 0, 0)
gr.DrawString(MigraID.Text & Space(2) & MigraName.Text & Space(2) & IqamaNum.Text & Space(2) & DatePicH.Text,
New Font("Tahoma", 22),
Brushes.Black, New RectangleF(0, bmp.Height, bmp.Width, 50))
newImage.Save(DbPath + "\Pictures\" + MigraID.Text + ".jpg")
PictureBox2.Image = Image.FromFile(DbPath + "\Pictures\" + MigraID.Text + ".jpg")[![enter image description here][1]][1]
I found a solution to my problem 我找到了解决问题的方法
gr.Clear(Color.White) gr.Clear(颜色。白色)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.