Value : Font [I/)] : Gets or sets a Font object that can be used by DrawerEx to render text. Note that assigning a Font object to this property does not copy a reference to the font but only copies its attributes such as size etc. Getting a Font object from this property always results in a reference to a new instance of a font. The reason for this is that fonts are immutable once created so if the attributes are changed a new instance of a font must be created.
It wouldn't have helped unless you were very quick off the mark - I only posted GDI+Desktop about an hour ago, that detail wasn't in the ImageLibEx help. Checkout the printing support in GDI+Desktop, it might mean that you can do some nice printing from your design apps on the desktop.I should read more often the help files.
SaveImage(PathName As String, Format As String) : Saves a file to to the PathName specified in the Format specified. Note that a file extension is not added and must be specified as part of the PathName. The file formats are"J" for jpg : "B" for bmp : "G" for gif : "P" for png. Anything else is saved as jpg. Desktops should support all formats, devices may only support "J".
Not that I can findIs there any way that transparency could be set for saving of png's and gifs?
If you look in the help for FormEx.DrawImage you will see that it takes no parameters and sets the Background image of the FormEx. You can't therefore offset an image from the form origin. A FormEx will maintain its background image without needing to have it repainted in the Paint event whereas the other b... drawing methods are volatile.it is example.i must draw image at 30,50 forexample.how?
DrawImage(Path AS String) : Sets the background image of the form. Images are treated slightly differently to a Basic4ppc form. An ImageLayout property (see below) governs how the image is displayed on the form.
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
mainfex.New1("main.mainf")
mainfex.Run
End Sub
Sub mainfex_showing
mainfex.Text="shown"
bmp1.New1(AppPath&"\garden.jpg")
bmp2.New2(mainfex.Width, mainfex.Height)
mainfex.ImageLayout = 0
mainfex.Image = bmp2.Value
drawex.New2(mainfex.Image)
rect1.New1(0,0,bmp1.Width, bmp1.Height)
rect2.New1(20,30,bmp1.Width, bmp1.Height)
drawex.DrawImage(bmp1.value,rect1.Value,rect2.Value,False)
End Sub
No-ish! While a Bitmap loaded from a file exists the file is locked and cannot be deleted or overwritten see post #7 here http://www.b4x.com/forum/questions-help-needed/3317-image-locking.html#post18740Now will bmpImage.SaveImage overwrite an existing image?
What's wrong withI have some wishes for additional functions:
- a Circle function, like for the form DrawCircle(pen,x,y,radius)
- a FillCircle function FillCircle(brush,x,y,radius)
Because GDI on the Compact Framework doesn't include this and I deliberately restricted ImageLibExDesktop to what was (more or less) also available on the device. DrawArc and DrawPie are included in my GDI+Desktop library which exposes the more advanced stuff on the desktop.and why not DrawArc and FillArc functions ?
Looks fairly easy on first glance, I'll take a proper look in a day or so. I'm tied up at the moment.- a second FloodFill function,
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?