| |
|
|
Sato Pinto | Hello
in the new and künftigen XProfan Version have I Problems with the Systemvariavel &BmpCol CompileMarkSeparation with XProfan 10 functions it, with Print &BmpCol becomes correctly. 2 outputted
greeting Sato P. |
|
|
| |
|
|
|
Jac de Lad | |
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 06/14/08 ▲ |
|
|
|
|
| Topic moved and umbenannt. |
|
|
| |
|
|
|
RGH | Perhaps helps one complete Beispielprogramm moreover. in the indicated code becomes no Bitmap loaded and isr &BmpCol therefore undefiniert.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 06/14/08 ▲ |
|
|
|
|
Sato Pinto | Hello Roland
Perhaps helps these small Proc The a little bit abgespeckt is what I make is a monochrome Graphic of 120x94 pixel on one dialog To loading and write in a File whom binären code the whole graphic the joining over The serial schnitstelle on a microcontroller gesendet becomes. the functions always To to XProfan10, with the new XProfan Version not any more whom The &bmpcol variavel supply a others worth the not 2 is. After the loading the graphic screen I whether The size and it monochrom is, fals not, becomes it aborted and the digitaliesierungs routine won't implemented. CompileMarkSeparation
proc converte_94x120
graphic wählen zum laden
if bombeiro120&
temp$ = pfad$+Imagens\Bombeiros\120X94\
elseif carga120&
temp$ = pfad$+Imagens\Excesso de carga\120X94\
endif
LoadPicDialog(temp$,Seleccione o grà fico,BMP)
ifnot file$ =
dlg2& = @Create(dialog,%hwnd,,110,210,150,150)
@SetWindowPosition(dlg2&,-1,0,0,120,94,(2+(1+$40))) on top
male die graphic auf ein dialog und konvertiere es anschliessend in binären code
startpaint dlg2&
loadbmp file$,0,0;0
endpaint
print %bmpx, ,%bmpy, ,&bmpcol
If (%bmpx <> 120) or (%bmpy <> 94)
@MessageBox((t#.translate(Converta por favor o grà fico para 120x94 pixels e tente de novo)),(t#.translate(Tamanho errado)),48)
@destroyWindow(dlg2&)
return
Endif
If &BmpCol <> 2
@MessageBox((t#.translate(Converta e guarde o grà fico como monocromà tico com um utilità rio como o Paint)),(t#.translate(Tamanho errado)),48)
@destroyWindow(dlg2&)
return
Endif
Hier kommt die konvertierungs routine
Endif
Endproc
proc LoadPicDialog
parameters local$,Titulo$,Nome$
declare ofn#,Result&
declare DefView&,Status%------Varià vel para Hook
Nome$=Nome$+z*.bmp;*.jpe;*.jpeg;*.jpg;*.gifzz--Filtro (ajustar se necessà rio)
dim ofn#,Gl_puffer&+256---------------Structura (Win2000/NT/XP) + Buffer
clear ofn#
long ofn#,0=Gl_puffer&----------------Tamanho da Estrutura para GetOpenFileName (76 para Win9x)
long ofn#,4=%hwnd-------------Janela hirarquicamente superior
long ofn#,12=addr(Nome$)------Filtro/Tipo
long ofn#,28=ofn#+Gl_puffer&----------Inicio Buffer
long ofn#,32=255--------------Tamanho Buffer
long ofn#,44=addr(local$)------pfad inicial
long ofn#,48=addr(Titulo$)-----Titulo
long ofn#,52=$880024----------Flags
long ofn#,68=procaddr(OpenFileHook,4)
Result&=external(COMDLG32,GetOpenFileNameA,ofn#)
file$=string$(ofn#,Gl_puffer&)
casenot Result&:Result$=
casenot Result&:file$=
procaddr(OpenFileHook,-4)
dispose ofn#
return Result$
return file$
ss=s4 href='./../../Function-References/XProfan/endproc/'>endproc
in the new Help standing %BmpCol instead of &BmpCol
Regards from portugal Sato P. |
|
|
| |
|
|
|
Sato Pinto | Hello Roland
here one small example the by me To XProfan10 functions Perhaps can so see where the Error stick
greeting Sato |
|
|
| |
|
|
|
RGH | Sato Pinto
Hello Roland
here one small example the by me To XProfan10 functions Perhaps can so see where the Error stick
greeting Sato
Hi, I have it found out: since XProfan 11 can also LoadBmp (or. DrawPic, How the commands now is), too The others Formate and using therefore OLE to that loading the Bitmap and not any more How yet my selbstgeschriebene routine. OLE supply but the image properly to that DC the Bildschirms gerendert back and therefore has to the loading the image The suitable values. in the memory to the draw lying the image means objectively as a Bitmap to, The The same Color Depth, How the screen has. time look, whether I for .BMP and .RLE again my old routine ausgrabe and the old behaviour again herstelle.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 06/22/08 ▲ |
|
|
|
|
Sato Pinto | Hello Roalnd
thanks for your endeavour
greeting Sato |
|
|
| |
|
|