Image and byte[] constructor

wxD
Rommi
2008-09-04
2013-05-22
  • Rommi

    Rommi - 2008-09-04

    Hi all!

    In Image.d on lines 152, 153 there is this constructor:

    public this(byte[] data, BitmapType type)
    {
        /* this(wxImage_ctorByByteArray(data.ptr, data.length, type)); */
        debug assert(0);
        this(wxImage_ctor());
    }

    However if I change it like that it works fine for me:

    public this(byte[] data, BitmapType type)
    {
        this(wxImage_ctorByByteArray(cast(IntPtr)(data.ptr), data.length, type));
    }

    What was the purpose to disable this constructor?

     
    • Anders F Björklund

      Can't even remember :-)

      Let's change it back...

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks