2011-12-01から1ヶ月間の記事一覧

WPF ModelUIElement3D-2-

索引サイト private void buttonSet_Click(object sender, RoutedEventArgs e) { for (int idx = 0; idx { GeometryModel3D z_GeometryModel = new GeometryModel3D(); Transform3DGroup z_Transform3DGroup = new Transform3DGroup(); RotateTransform3D z_…

WPF ModelUIElement3D-1-

索引サイト <ModelUIElement3D MouseMove="ModelUIElement3D_MouseMove_1" PreviewMouseMove="ModelUIElement3D_PreviewMouseMove_1"> <ModelUIElement3D.Transform> <TranslateTransform3D OffsetX="-2.5" OffsetY="2"/> </ModelUIElement3D.Transform> <ModelUIElement3D.Model> <GeometryModel3D> <GeometryModel3D.Geometry>…</geometrymodel3d.geometry></geometrymodel3d></modeluielement3d.model></modeluielement3d>

WPF MakeTransparent-2-

索引サイト 改めて見たら意味がよく分からないので http://d.hatena.ne.jp/TYKYUNC/20111205/1323089660 要するにこれを↓ 白黒の画像に変換して↓ 一定濃度以下の明度を一定にして、アルファ値操作で全体を半透明にする。↓ その一定濃度にそろえた色を Maketr…

WPF(C#) Alpha-2-

索引サイト Alpha Alpha Alpha アルファに青(3)をセットした場合↓ Bitmap w_bitmap = new Bitmap(xsize, ysize); for (int idx1 = 0; idx1 { for (int idx2 = 0; idx2 { //******************************************* // 順序はそのまま A,R,G,B //*******…

WPF 3D -4- (Rotation3DAnimation)

索引サイト DoubleAnimation Angle 操作で迷路。結局 Rotation3DAnimation で作成 AxisAngleRotation3D w_rotateAxis = new AxisAngleRotation3D(w_vector3d, 90); Rotation3DAnimation w_rotateAnimation = new Rotation3DAnimation(); w_rotateAnimation.B…

WPF Rotation3D

索引サイト ルービックキューブを作ろうとして出来た迷作 なにげに Angle を使用して作ろうとしたら回転によって上層の軸が回転してしまう。センター位置を個々の中心にしてみると、それなりに面白いので作成。多分、実体では作れず難解で遊びにもならない。…

WPF 3D Texsture

索引サイト wmv を貼り付けてみる。

WPF TextureCoordinates 3/3

索引サイト 結局、開始と終了の TriangleIndices を分離させる。↓ もとの画像 TriangleIndices="2,1,0 3,2,0 5,4,1 2,5,1 7,6,4 5,7,4 9,8,6 7,9,6 11,10,8 9,11,8 13,12,10 11,13,10 15,14,12 13,15,12 17,16,14 15,17,14" Positions="0,100,100 70.710701,…

WPF TextureCoordinates 1/3

索引サイト TextureCoordinates 作成途中 <Grid> </grid>

WPF TextureCoordinates 2/3

索引サイト こうなっているはずなので↓ そのまま素直につくると、最終面が帳尻合わせに全面反転表示されてしまう↓ 面の消去は無理そうなので、隠す。・・ん〜まあ、それなりに見えれば。

WPF RadialGradientBrush -2-

索引サイト <Rectangle Grid.Column="1" Grid.Row="1" > <Rectangle.Fill> <RadialGradientBrush> <GradientStop Color="#00000000" Offset="0" /> <GradientStop Color="#ffffffff" Offset="1" /> </RadialGradientBrush> </Rectangle.Fill> </Rectangle> <Rectangle Grid.Column="1" Grid.Row="1" > <Rectangle.Fill> </rectangle.fill></rectangle>

VideoPad

索引サイト たまに使用しようとすると忘れがちなので (参考) http://www.nchsoftware.com/videopad/jp/ http://www.nchsoftware.com/videopad/jp/tutorial.html

WPF RadialGradientBrush -1-

索引サイト <Rectangle Grid.Column="1" Grid.Row="1" > <Rectangle.Fill> <RadialGradientBrush> <GradientStop Color="#00000000" Offset="0" /> <GradientStop Color="#ffffffff" Offset="1" /> </RadialGradientBrush> </Rectangle.Fill> </Rectangle> <Rectangle Grid.Column="3" Grid.Row="1" > <Rectangle.Fill> </rectangle.fill></rectangle>

WPF Alpha

索引サイト マスク処理経過メモ (参考) http://msdn.microsoft.com/ja-jp/library/system.drawing.color.fromargb%28v=vs.80%29.aspx http://msdn.microsoft.com/ja-jp/library/8517ckds.aspx http://csharpimage.blog60.fc2.com/blog-entry-21.html

WPF MakeTransparent

索引サイト Image Bitmap BitmapImage Media Drawimg が、ごちゃごちゃになって混乱中。とりあえず動作するもの。 透過は Bitmap 表示は BitmapImage を使用 Bitmap w_Bitmap = new Bitmap(@"h:/png/test-1.png"); w_Bitmap.MakeTransparent(System.Drawing.…

WPF 透過 BackMateriel

索引サイト 裏返すと「真っ暗」がどうにも気に入らないので BackMaterial を使用する。そのまま使用すると描画は反転表示してくれるが透過処理がうまくいかない。裏面用の GemetryModel3D を定義すると常識的な動作になる。 ちょっと考え違いをすると「てん…