簡単な答えがあるかもしれませんが、私はかなりのことを試しましたが、画像を手動で表示しない限り何も機能しないようですが、他の写真にもこのサブを使用したいのですが、後で修正しますこれらの画像を表示します。私のコードは次のとおりです
Private Sub updateStandardToolbar()
    'Draws the sprites to the pictureboxes
    Dim bit As New Bitmap(gridSize, gridSize)
    Dim dest_rect As Rectangle = New Rectangle(0, 0, gridSize, gridSize)
    Dim i As Integer = 0
    ' Associate a Graphics object with the Bitmap
    Dim gr As Graphics = Graphics.FromImage(bit)
    For y As Integer = 0 To standardNum.Y
        For x As Integer = 0 To standardNum.X
            Call getSrcRect(x, y)
            'Copy that part of the image.
            gr.DrawImage(bmpStandardTile, dest_rect, src_rect, GraphicsUnit.Pixel)
            'Display the result.
            pb(i).Image = bit
            i += 1
        Next
    Next
End Sub
このコードの問題は、すべての画像ボックス(pb())が、私の画像の最後の画像と同じ画像を表示することです。StandardNum.xとstandardNum.yは、それぞれ3と1を保持する変数です。bmpStandardTileは私がコピーしたい画像であり、うまくいけばdest_rectであり、src_rectは自明です=)。どんな助けでも大歓迎です。