![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
Thanks again. At least Imagemagick is now working So I will wade through the instructions and see if I can fathom transparent labels. Is your suggestion then to create a transparent image containing the boat and owner name at the correct size and angle, then use that as the picture in an image control, then drag the image round to the correct spot. If the angle is incorrect, then I click on the image, redifine the angle and use ImageMagick to create a new image. Given that the Boatnameand person's name is in a field called "SpaceAndName" and the angle is "LabelAngle" and that I am using Arial 10pt and that although the height of the label should be constant to fit the 10pt Arial, the length will vary possibly by a factor of 3 to accomodate the different "SpaceAndName" data, could you help me with the precise command. I presume the output file will be a Png or Gif. Are there any advantages of one type or the other. Many thanks again for your patience Phil Not sure. I have only used IM for jpg conversions. I know it's also used inside Inkscape, maybe the svg to png conversion. Since I've also gotten transparent rotated text images using that process, I imagine it can be done with either the :label parameter or the -draw command. To convert svg to png is as simple as: convert -size 300x300 +antialias a.svg a.png I think you can cause transparent background with 'xc:none' http://www.imagemagick.org/Usage/draw I'll play around with it again today when I get the chance. Good luck! ref links: http://potrace.sourceforge.net/ http://en.wikipedia.org/wiki/Compari...rsion_software |
#22
| |||
| |||
|
|
* * sCmd = sCmd & "convert -rotate -45 -background transparent *" sCmd = sCmd & "-size 2000x -font 'Arial' -pointsize 96 label:Philip -trim +repage " |
|
ChDir (DataPath) ' Imagemagick does not understand paths |
|
and I am then loading the same draw12.png as a picture into 3 image objects (Space01, 02 and 03). Now the work starts to create the right data for the 100 odd pngs and then load the correct pngs into the right images. You really did get me moving on this one, as I was completely stumped Thanks again Phil |
#23
| |||
| |||
|
#24
| |||
| |||
|
|
Found this article on DirectX7 if you can add a reference to 'DirectX 7 Visual Basic Type Library': http://msdn.microsoft.com/en-us/libr...8VS.60%29.aspx Haven't tried it yet. To use you'd want to drop in a VB 2.0 Frame Control (ActiveX), get the hWnd by using Frame1.SetFocus and the 'GotFocus' api. Hi Christian, I'm stuck again |
#25
| |||
| |||
|
|
On 23/03/2011 15:53:51, "christianlott1 (AT) yahoo (DOT) com" wrote: Found this article on DirectX7 if you can add a reference to 'DirectX 7 Visual Basic Type Library': http://msdn.microsoft.com/en-us/libr...8VS.60%29.aspx Haven't tried it yet. To use you'd want to drop in a VB 2.0 Frame Control (ActiveX), get the hWnd by using Frame1.SetFocus and the 'GotFocus' api. Hi Christian, I'm stuck again Thought I had cracked it. In the example I gave above, that worked OK. If however the Label has a space in it e.g. "Philip Stanton" only the Philip part is generated. Other interesting things like reducing the pointsize from 96 to 12, gives the same size image, but blurred. I need to produce constant height labels with a fixed font, so it's OK for their width to vary according to the length of the label Any ideas Thanks Phil |
![]() |
| Thread Tools | |
| Display Modes | |
| |