Ejemplo n.º 1
0
        public unsafe static byte Showpic_Picq(int x, int y, ushort w, ushort h, int x2, int y2, ref Picturexinxi mpicture)
        {
            byte result;

            fixed(Picturexinxi *ptr = &mpicture)
            {
                result = Showpic.Showpic_ShowXpic_M(x, y, w, h, x2, y2, ptr);
            }

            return(result);
        }
Ejemplo n.º 2
0
        public unsafe static byte Showpic_ShowXpic(int x, int y, ushort w, ushort h, int x2, int y2, ushort picindex)
        {
            Picturexinxi picturexinxi = default(Picturexinxi);
            byte         result;

            if (picindex >= Showpic.myapp.app.picqyt)
            {
                if (picindex == 65535)
                {
                    result = 1;
                }
                else
                {
                    Showpic.myapp.errcode = 4;
                    result = 0;
                }
            }
            else
            {
                Readdata.Readdata_ReadPic(ref picturexinxi, (int)picindex);
                result = Showpic.Showpic_ShowXpic_M(x, y, w, h, x2, y2, &picturexinxi);
            }
            return(result);
        }