home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 November
/
CPNL0711.ISO
/
beeld
/
screen
/
hcf.exe
/
Basic
/
Basic_Image_033_DrawTextCircle.bas
< prev
next >
Wrap
BASIC Source File
|
2005-06-17
|
3KB
|
88 lines
sImgBackground = "d:\\!cd_api_\\Print\\hintergrund.bmp" ' Bildgr÷▀e 1200 x 1200 oder gr÷▀er
sTextTop = "Fragen, Antworten und Wⁿnsche unter: www.service.hardcopy.de ╖ Questions, Answers, Suggestions & Wishes: www.service.hardcopy.de"
sTextBottom = "Copyright ⌐ 1983-2005 ╖ bla bla ╖ bla bla bla ╖ bla bla ╖ bla bla bla ╖ bla bla"
sText1 = "Text1"
sText2 = "Text2: 15.1.06"
sText3 = "Text3 (rechts- ):\nText4 (bⁿndig):"
sText3a = "Text3a (links-)" + "\n" + "Text4a (bⁿndig)"
If Image( 0 ).Open( sImgBackground ) < 1 Then
Dialog "Hintergrundbild kann nicht ge÷ffnet werden."
End Dialog
End
EndIf
w = Image(0).Width
If w < 1200 Then w = 1200
w2 = w / 2
Image( 0 ).Resample( w, w )
Pen.Color = _ColorWhite
Pen.Width = w + 1
Image(0).Ellipse( -w2,-w2, w*2 , w*2 )
Pen.Color = _ColorBlack
Pen.Width = 1
Image(0).Ellipse( -2,-2, w+4 , w+4 )
iRingBreiteAussen = w / 30
Pen.Width = iRingBreiteAussen
Pen.Color = _ColorWhite
Image(0).Ellipse( 0+Pen.Width/2,0+Pen.Width/2, w-Pen.Width,w-Pen.Width )
iRingBreiteInnen = w / 7
Image(0).EllipseFill( w2-iRingBreiteInnen/2,w2-iRingBreiteInnen/2, iRingBreiteInnen,iRingBreiteInnen )
Font.Size = w / 52
Font.Color = _ColorBlue
Font.Name = "Courier New"
Font.Bold = true
iRingBreiteAussen = iRingBreiteAussen *1.5
Image(0).DrawTextCircle( iRingBreiteAussen/2,iRingBreiteAussen/2 , w-iRingBreiteAussen,w-iRingBreiteAussen , -90, 180, sTextTop )
iRingBreiteAussen = iRingBreiteAussen *1.3
Image(0).DrawTextCircle( iRingBreiteAussen/2,iRingBreiteAussen/2 , w-iRingBreiteAussen,w-iRingBreiteAussen , 120,-120, sTextBottom )
Font.Color = _ColorWhite
Font.Name = "Arial"
Font.Bold = true
Font.Size = w*0.12
Font.Align = _FontAlignCenter
Image(0).DrawText( 0,w*0.15, w,w, sText1 )
Font.Size = w*0.04
Font.Align = _FontAlignRight
Image(0).DrawText( w2,w2-Font.Size/2, w2-Font.Size*2,w2, sText2 )
Font.Size = w*0.048
Font.Align = _FontAlignRight
Image(0).DrawText( 0,w*0.65, w2,w2, sText3 )
Font.Align = _FontAlignLeft
Image(0).DrawText( w*0.52,w*0.65, w2,w2, sText3a )
Redraw()
End ' fⁿr die Verwendung mit TrueNet diese Zeile l÷schen
anzahl = 1
Dialog "Anzahl"
"Anzahl:", anzahl
End Dialog
fImage = "d:\\!cd_api_\\Print\\vorlage_ra.jpg"
Image(0).Save( fImage, _Image_JFIF, 24, 2, "", "" )
f = "d:\\!cd_api_\\auscd"
fp = File.Open( f + ".tmp", "w" )
File.Write( fp, "DEVICE=roboter_device_name\n" )
File.Write( fp, "JOB_TYPE=BUILD+COMPARE+PRINT\n" )
File.Write( fp, "BUILD_TYPE=ISO_CD\n" )
File.Write( fp, "BUILD_PATH=d:\\CD_daten\n" )
File.Write( fp, "PRINT_TEMPLATE=d:\\!cd_api_\\Print\\vorlage_mit_innenring.rpt\n" ) ' nur wegen der Gr÷▀e
File.Write( fp, "PRINT_BACKGROUND=" + fImage + "\n" )
File.Write( fp, "COPYRIGHT=xxx xxx\n" )
File.Write( fp, "VOLUME=vvvvv\n" )
File.Write( fp, "JOLIET=YES\n" )
File.Write( fp, "QUANTITY=" + anzahl + "\n" )
File.Close( fp )
File.Rename( f + ".tmp", f + ".job" )