This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports Microsoft.Office.Interop.PowerPoint | |
Public Class ThisAddIn | |
Private Sub Application_SlideShowNextSlide(Wn As SlideShowWindow) Handles Application.SlideShowNextSlide | |
Dim r = New Random | |
Dim s As System.IO.Stream | |
Select Case r.Next(0, 3) | |
Case 0 | |
s = My.Resources.camera_shutter_click_02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
</head> | |
<body> | |
<table> | |
<tr> | |
<td>あいうえお</td> | |
<td>かきくけこ</td> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Response> | |
<Say language="ja-JP">だるやなぎスピーチです。次のメッセージを発音してシャープキーを押しなさい。こんばんは</Say> | |
<Record action="http://example.jp/handler" finishOnKey="#"/> | |
</Response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.panel { | |
background: url('http://pronama.azurewebsites.net/chrome/sd_eye0.png') no-repeat; | |
background-size: contain; | |
background-position: 10px -5px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim dst = New Rectangle(754, 18, 1110, 807) ' 描画先の位置・大きさ | |
Dim src = New Rectangle(0, 0, webBmp.Width, webBmp.Height) ' 参照画像の位置・大きさ | |
If dst.Width / dst.Height < webBmp.Width / webBmp.Height Then | |
Dim w = dst.Width / (dst.Height / webBmp.Height) | |
src.X = Convert.ToInt32((webBmp.Width - w) / 2) | |
src.Width = Convert.ToInt32(w) | |
Else | |
Dim h = dst.Height / (dst.Width / webBmp.Width) | |
src.Y = Convert.ToInt32((webBmp.Height - h) / 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="vb" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="GeneratorWebForm" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim q = Context.Request.QueryString.Get("q") | |
If Not Uri.IsWellFormedUriString(q, UriKind.Absolute) Then | |
Exit Sub | |
End If | |
Dim url = New Uri(q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim wallBmp = New Bitmap(System.IO.Path.Combine(Server.MapPath("./"), "wallpaper.png")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Response.ContentType = "image/png" | |
Response.Flush() | |
outBmp.Save(Response.OutputStream, Imaging.ImageFormat.Png) | |
Response.End() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim webBmp As Bitmap | |
Using wc = New WebClient | |
webBmp = New Bitmap(wc.OpenRead(url)) | |
End Using |