English
Bugs and vermeintliche

X11RC7: Completed: &BmpCol

 

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.
 
Sato Pinto
WIN XP Home
XPROFAN 11
06/14/08  
 




Jac
de
Lad
attempt time
CompileMarkSeparation
declare BMPC&
bmpc&=&BmpCol
print BMPC&

If BMPC&<> 2

    drawtext 10,50,Grafik als monochrom konvertieren

E
a>
 
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.
 
06/14/08  
 




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
WIN XP Home
XPROFAN 11
06/15/08  
 




Sato
Pinto
Hello Roland

here one small example the by me To XProfan10 functions
Perhaps can so see where the Error stick

greeting
Sato

 
Sato Pinto
WIN XP Home
XPROFAN 11
06/22/08  
 




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
 
Sato Pinto
WIN XP Home
XPROFAN 11
06/22/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.708 Views

Untitledvor 0 min.

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie