<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
a:link {
color: #ff9900;
text-decoration: none;
}
a:visited {
color: #ff9900;
text-decoration: none;
}
a:hover {
color: #faf75c;
text-decoration: none;
}
a:active {
color: #faf75c;
font-size: 110%;
}
</style>
</head>
<body>
<div style="color:#33cc33; border:2px dotted #33cc33;width:658px; margin-left:10px; padding:20px; font-family:Comic Sans MS, cursive, sans-serif;">
<h3>
Chuanshuoge, Calgary, Canada, Earth, Solar system, Milky Way Galaxy
</h3>
<h2>
<a href="http://chuanshuoge2.blogspot.ca" target="_blank"><sub>Chuan</sub>Shuo<sup>Ge</sup> - <sub>传</sub>说<sup>哥</sup></a>
</h2>
</div>
<br/>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsTWUDul5K6Pt9yEB7CyZ82QCh32DykL7qIXE_oWmQagoVVf91V-6OqEnpOlB1fEdaue222Z-24RSEyZyNBxryMqPY3GvF3nw6vj30rugbpKFNSqMv4kTeSMBGFFdMSBBJzRA6sWfmhdo/s1600/www.GIFCreator.me_pxVfpz.gif"; alt="Location"/>
</body>
</html>
-----------------------------------------------------
//startup.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace WebApplication1
{
public class Startup
{
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole();
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseDefaultFiles();
app.UseStaticFiles();
app.Run(async (context) =>
{
await context.Response.WriteAsync("Hello World!");
});
}
}
}
screen shot program
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private int picnum = 1;
private void timer1_Tick(object sender, EventArgs e)
{
//Rectangle bounds = this.Bounds;
//Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height);
Bitmap bitmap = new Bitmap(640, 320);
Graphics g = Graphics.FromImage(bitmap);
//g.CopyFromScreen(left corner, Point.Empty, new Size(640,320));
g.CopyFromScreen(new Point(852, 230), Point.Empty, new Size(640,320));
bitmap.Save("test" + picnum + ".jpg");
picnum++;
}
private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true;
}
private void button2_Click(object sender, EventArgs e)
{
timer1.Enabled = false;
}
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
textBox1.Text= Cursor.Position.X.ToString();
textBox2.Text= Cursor.Position.Y.ToString();
}
}
}
http://blogger-hints-and-tips.blogspot.ca/2010/10/putting-html-code-from-third-party-into.html
http://www.talkingdotnet.com/make-index-html-startup-file-in-aspnet-core/
https://ezgif.com/maker
http://gifcreator.me/
No comments:
Post a Comment