社区
C语言
帖子详情
求C语言对称函数程序
C_9
2013-10-29 10:26:23
求C语言对称函数程序,坐标都是确定的,在一个确定的坐标上有一个汉字,怎么把它也显示对称坐标上去?例如,象棋的棋子都是对称的……
...全文
479
8
打赏
收藏
求C语言对称函数程序
求C语言对称函数程序,坐标都是确定的,在一个确定的坐标上有一个汉字,怎么把它也显示对称坐标上去?例如,象棋的棋子都是对称的……
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
8 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
ForestDB
2013-11-01
打赏
举报
回复
你看到的东西,都是一笔一笔的画出来的。
C_9
2013-10-31
打赏
举报
回复
[quote=引用 5 楼 zhao4zhong1 的回复:]
ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.WIN32COM.v10.en/gdicpp/GDIPlus/usingGDIPlus/usingimagesbitmapsandmetafiles/rotatingreflectingandskewingimages.htm
这是什么啊??网址打不开
C_9
2013-10-31
打赏
举报
回复
我想画象棋棋盘,线条,棋子能直接对称过去显示!
赵4老师
2013-10-30
打赏
举报
回复
ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.WIN32COM.v10.en/gdicpp/GDIPlus/usingGDIPlus/usingimagesbitmapsandmetafiles/rotatingreflectingandskewingimages.htm
Rotating, Reflecting, and Skewing Images -------------------------------------------------------------------------------- You can rotate, reflect, and skew an image by specifying destination points for the upper-left, upper-right, and lower-left corners of the original image. The three destination points determine an affine transformation that maps the original rectangular image to a parallelogram. (The lower-right corner of the original image is mapped to the fourth corner of the parallelogram, which is calculated from the three specified destination points.) For example, suppose the original image is a rectangle with upper-left corner at (0, 0), upper-right corner at (100, 0), and lower-left corner at (0, 50). Now suppose we map those three points to destination points as follows. Original point Destination point Upper-left (0, 0) (200, 20) Upper-right (100, 0) (110, 100) Lower-left (0, 50) (250, 30) The following illustration shows the original image and the image mapped to the parallelogram. The original image has been skewed, reflected, rotated, and translated. The x-axis along the top edge of the original image is mapped to the line that runs through (200, 20) and (110, 100). The y-axis along the left edge of the original image is mapped to the line that runs through (200, 20) and (250, 30). The following example produces the images shown in the preceding illustration. Point destinationPoints[] = { Point(200, 20), // destination for upper-left point of original Point(110, 100), // destination for upper-right point of original Point(250, 30)}; // destination for lower-left point of original Image image(L"Stripes.bmp"); // Draw the image unaltered with its upper-left corner at (0, 0). graphics.DrawImage(&image, 0, 0); // Draw the image mapped to the parallelogram. graphics.DrawImage(&image, destinationPoints, 3); The following illustration shows a similar transformation applied to a photographic image. The following illustration shows a similar transformation applied to a metafile. -------------------------------------------------------------------------------- © 2005 Microsoft Corporation. All rights reserved.
buyong
2013-10-30
打赏
举报
回复
TextOut
lm_whales
2013-10-30
打赏
举报
回复
首先: 你对称 要对汉字的中心区域进行。 然后考虑汉字本身是否对称显示。 其次:要考虑如何对称 1)中心对称 2)轴对称 3)处理好对称后如何显示。 立体感强的三维图像是透视图。 其他一般是二维平面图形; 最多是个投影图形。
SoWhat
2013-10-29
打赏
举报
回复
相对轴对称?相对远点对称?都是简单的数学吧....
mdxz1229
2013-10-29
打赏
举报
回复
楼主,请把问题描述清楚,越清楚越好!
离散数学
程序
实现——
求
关系矩阵的自反和
对称
闭包——c
/*2.2 写一个
程序
,构造关系的自反和
对称
闭包 */ #include<stdio.h> #define N 5 int a[N][N]; void input( int n ) { int i,j; for( i=0;i<n;i++ ){ for( j=0;j<n;j++ ){ scanf("%d",&a[i][j]); } } } void output( int x[N][N] ) { int i,j; for( i=0;i<N;.
c语言
求
交、并、补、
对称
差
下面展示一些 内联代码片。 // A code block var foo = 'bar'; #include <stdio.h> #include <stdlib.h> #define N 50 //
求
并集,ab是两个集合lengtha是a的长度 void bing(char *a,int lengtha,char *b,int lengthb) { char c[N]={0}; int m,j,i; printf("第一个集合为"); for (
C语言
求
矩阵的逆(伴随法)
利用
C语言
完成对矩阵
求
逆的运算
复数矩阵
求
逆的 C 语言
程序
关于复数矩阵
求
逆,如果使用 MATLAB,就非常简单。我们先用一个 MATLAB 的例子来说明,等会要将 C 语言的
程序
和 MATLAB 的
程序
进行对比。 close all; clear all; clc; %定义矩阵a为复数矩阵 a = [[4+2*i,3+1*i,4+3*i,5+5*i]; [1+7*i,8+2*i,2+2*i,9+3*i]; [4+4*i,5+6*i,1+...
c语言
求
对称
数编译代码,
对称
数
c语言
对称
数
c语言
Tag内容描述:1、题目6 一个5位数 判断它是不是回文数 即12321是回文数 个位与万位相同 十位与千位相同 include stdio h main int a x y p q printf 输入一个五位数 n scanf d a for a10000 a99999 printf 输入错误再次输入 n scanf。2、完数(5分)题目内容:一个正整数的因子是所有可以整除它的正整数...
C语言
70,040
社区成员
243,237
社区内容
发帖
与我相关
我的任务
C语言
C语言相关问题讨论
复制链接
扫一扫
分享
社区描述
C语言相关问题讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章