[英]How can I make the splitter visible on a SplitPanel without creating a border
[英]How can I add a Rect without a border?
是否可以创建带有黑色字体,没有边框或至少具有白色边框的Rect文本区域?
另外,是否可以添加图像而不使其缩放以适合Rect?
制作白色边框
PDFDoc.Color.String = "255 255 255"
PDFDoc.Rect.Left = 100
...
根据他们的文档,“线条颜色由当前颜色确定”
用黑色字体创建矩形文本区域:
Dim PDFDoc As WebSupergoo.ABCpdf8.Doc
'Dimensions
PDFDoc.Rect.Left =100
PDFDoc.Rect.Bottom = 100
PDFDoc.Rect.Width = 100
PDFDoc.Rect.Height = 100
PDFDoc.Color.String = "0, 0, 0" 'black font
PDFDoc.AddText(text)
不过要小心。 如果文本大于矩形,则不会出现。
默认情况下将没有边框。 如果您需要一个,请使用:
PDFDoc.FrameRect()
要添加图像:
Dim bm As Bitmap
bm = New Bitmap(filename)
'Dimensions
PDFDoc.Rect.Left = 100
PDFDoc.Rect.Bottom = 100 'N.B Measures from bottom, not top
PDFDoc.Rect.Width = 100
PDFDoc.Rect.Height = 100
PDFDoc.FillRect()
PDFDoc.AddImageBitmap(bm, True)
但是,我认为不可能使其不适合Rect。 据我了解,无论如何,这就是Rect的意义所在。
另外,我建议您看看websupergoo的文档 。 这是相当不错。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.