C# と VB.NET の質問掲示板

わんくま同盟

ASP.NET、C++/CLI、Java 何でもどうぞ

C# と VB.NET の入門サイト


(過去ログ 8 を表示中)
■7877 / )  Re[5]: RGB値
□投稿者/ επιστημη 中将(266回)-(2006/10/29(Sun) 05:17:26)
επιστημη さんの Web サイト

分類:[VB.NET] 

> こういうことですか!?

…やってみました?

---- PictureBox1 のイメージをひっくり返して PictureBox2 に描く。

Dim source As Bitmap = PictureBox1.Image
Dim target As Bitmap = New Bitmap(source.Width, source.Height)
Dim x As Integer
Dim y As Integer
For x = 0 To source.Width - 1
For y = 0 To source.Height - 1
target.SetPixel(source.Width - x - 1, source.Height - y - 1, source.GetPixel(x, y))
Next
Next
PictureBox2.Image = target


0
返信 編集キー/


管理者用

- Child Tree -