GDI+ Bitmap größehochgrenze



  • Ich habe ein Programm wo ich brauche korrigieren für machen möglich exportieren in Graphikdatei TIFF mit Größe mehr als 8092 Bildpunkten. Einst ich denkte das ist darum das Programm benützt eine alte Version von GDI+ DLL. Dieser DLL ist eingebautet im Programm. Ich korrigierte daß das Programm jetzt benutzt die DLLs von Visual Studio 2005. Aber der Fehler existiert noch.

    Immer noch das Programm geht zur Linie

    Bitmap  bitmap( (int)(((double)max_right)*kM), (int)(((double)max_bottom)*kM));
    

    und in GdiPlusBitmap.h es macht ein Bitmap in Linie

    lastResult = DllExports::GdipCreateBitmapFromScan0(width,
                                                           height,
                                                           stride,
                                                           format,
                                                           scan0,
                                                           &bitmap);
    

    und bekommt ein Fehler wie das Resultät des Funktionanruf.

    Aber beispielweise in C# benützend die Namespaces ist möglich machen die Graphikdatei zweimal größer und PhotoShop kann machen sie viel größer.

    Sagen Sie bitte, wie korrigieren die Funktionanrufe daß es werde möglich machen die Graphikdatei größer.



  • Bitte was?



  • Vielleicht ich spreche Deutsch sehr schlecht, erkläre ich es in Englisch (ich habe gefunden nicht ein guten Forum über C# in Englisch).

    I've a program to correct to make it able to save exported to TIFF images more than 8092 pixel in one of dimensions. First I've thought it because of old version of GDI+ DLL that's included in the program. I've corrected the C++ project so that the program uses more files of built-in SDK of VS 2005. But the error doesn't disappear.

    The same way when the program goes to the line

    Bitmap  bitmap( (int)(((double)max_right)*kM), (int)(((double)max_bottom)*kM));
    

    and the module in GdiPlusBitmap.h becomes to create a bitmap its line

    lastResult = DllExports::GdipCreateBitmapFromScan0(width,
                                                           height,
                                                           stride,
                                                           format,
                                                           scan0,
                                                           &bitmap);
    

    gets an error in the called function result.

    But for example in C# using namescpaces it possible to create twice larger images and PhotoShop can create much larger. Tell me please, how to correct modules using to make the program able to save larger images.



  • if you are using C++/CLI - the same way like you c# app.



  • Knuddlbaer schrieb:

    if you are using C++/CLI - the same way like you c# app.

    I've not succeeded to use System.Drawing namespace in C++, H-files doesn't suit.

    But now I've found on one computer it runed successfully to 17000 pixel width. What does it depends of I've not understand, I've tryed to copy a newer version of gdiplus from that computer but it gave no results. May it's not written in regsitry but I don't know how to write there.


Anmelden zum Antworten