掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
VB.net で GetDIBits を使用するには? (ID:82101)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
> GetPixelメソッドを使用すると尋常でない時間がかかってます。 1点ずつ取得するのではなく、 Dim Bmp As System.Drawing.Bitmap Bmp = DirectCast(PictureBox1.Image, System.Drawing.Bitmap) Dim Data As System.Drawing.Imaging.BitmapData Data = Bmp.LockBits( _ New System.Drawing.Rectangle(0, 0, Bmp.Width, Bmp.Height), _ System.Drawing.Imaging.ImageLockMode.ReadWrite, _ Bmp.PixelFormat) などとして、 Data.scan0 からのデータを System.Runtime.InteropServices.Marshal で読み取るとか。
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.