Example #1
0
    public ImageData1 make_draw_screen_img_re()
    {
        DX.SetDrawScreen(DX.DX_SCREEN_BACK);

        ImageData1 id1 = new ImageData1();

        id1.adress_set(screen_img1);

        return(id1);
    }
Example #2
0
    //作った画像は消しておく
    public void make_draw_img_del()
    {
        if (handlememo != -1)
        {
            ImageData1 img1 = new ImageData1();
            img1.adress_set(handlememo);

            delete_graph(img1);
        }
    }
Example #3
0
    public ImageData1 split_image(ImageData1 img, int x, int y, int w, int h)
    {
        int nt1 = 0;

        ImageData1 imgdata1 = new ImageData1();

        nt1 = DX.DerivationGraph(x, y, w, h, img.call());

        imgdata1.adress_set(nt1);

        return(imgdata1);
    }
Example #4
0
    //画像の読み込み
    public ImageData1 load_image(String name)
    {
        ImageData1 imgdata1 = new ImageData1();

        int nt = DX.LoadGraph(name);

        imgdata1.adress_set(nt);

        if (first_img_num == -1)
        {
            first_img_num = nt;
        }

        return(imgdata1);
    }
Example #5
0
    //画像読み込み2 分割されてない画像は、分割して読み込んだほうがDXライブラリでは速い…らしい
    //が、テストでは全く違いが感じられない
    //中身は、画像の読み込みと全く同じ
    public ImageData1 load_image2(String name)
    {
        int img1 = DX.LoadGraph(name);
        int w, h;

        DX.GetGraphSize(img1, out w, out h);

        int img2 = DX.DerivationGraph(0, 0, w, h, img1);

        ImageData1 imgdata1 = new ImageData1();
        ImageData1 imgdata2 = new ImageData1();

        imgdata1.adress_set(img1);
        imgdata2.adress_set(img2);

        delete_graph(imgdata1);

        return(imgdata2);
    }