Welcome![Sign In][Sign Up]
Location:
Search - draw note

Search list

[GDI-BitmapRectTracker

Description: MFC 带有一个 CRectTracker 类. 用来画出所谓的橡皮条矩形. 但在 WTL 里面, 没有对应的类. 所以,自己写了一个非常简单的 mix-in class, 在 WTL 里面使用, 将这个类作为您的窗口的基类即可让窗口具有画橡皮条矩形的行为.上载的压缩文件包含两个源文件, RectTracker.h 即为这个 mix-in class. SnapShotWnd.h 为使用这个类的一个窗口. 还有一张屏幕抓图, 从图片可以看出这个窗口的功能, 他实现类似透明窗口的功能. 注意那个虚线框, 就是 CRectTracker 画出来的.-MFC with a CRectTracker category. To draw of the so-called rubber rectangle. The WTL, there's no corresponding category. So they want to write a very simple mix-in class, the WTL is used to this category as your window so that the base class can be painted with rubber window the behavior of the rectangle. on the compressed file contains two sources, namely the RectTracker.h mix-in class. SnapShotWnd.h for the use of this kind of a window. Previously there a screen, pictures can be seen from the window of the function, he achieved similar functions transparent window . Note that dash is the CRectTracker painting.
Platform: | Size: 50643 | Author: 肖吉 | Hits:

[Other resourceMapDisplay

Description: MapDisplay 是一个矢量图形读取与编辑软件。我们自定义文件格式包括点、线、面、注记四大方面,对于点我们主要读取它的ID、颜色、坐标,而线另外包括线形、线宽,面则另外包括填充色,注记主要是记录ID、颜色、坐标、字体信息,对于这四方面,我们还读一个标记flag,以决定是用基本方法绘图还是用符号库来绘图。另外,为了兼容性,我们也设定它能直接读DXF文件,以处理来自AUTOCAD、Corel Draw等矢量图形编辑软件的数据。 MapDisplay的功能包括读文件并以合适大小来显示地图,并能进行放大、缩小、开窗、平移、旋转、复原、保存位图、转换文件格式、双视图互相操作、数据库查询等。 -MapDisplay is a vector graphics editor and reader software. Since the definition of file formats, including point, line, surface, the four NOTE regard, we read it in the main ID, color, coordinates and other lines including linear, linewidth, the other side, including color filled, mainly Note Records ID, color coordinates, font Information for this four, we also read a marker flag. a decision is the basic method used symbols or graphics to graphics library. Furthermore, in order to compatibility, we have set it can directly read DXF files to deal with from AutoCAD, Corel Draw and other vector graphics editing software data. MapDisplay features include reading the paper in a suitable size to show maps and conduct zoom in and out, windows, translation, rotation, rehabilitation, preservation
Platform: | Size: 1653188 | Author: 张鹤 | Hits:

[Other resourceS1D13717API_hanshu

Description: S1D13717API函数说明.所有的工程文件都是针对EPSON的WORK BENCH 33制定的。原库文件也是使用WORK BENCH 33编译生成的。 如果你使用了不同的开发工具和编译器,你需要制定相应的的工程文件重新编译源代码,生成需要的库。-S1D13717API function note. All works documents are directed at the WOR EPSON BENCH 33 K enacted. The original document is the use WORK BENCH 33 compiler generated. If you use a variety of development tools and compilers, you need to draw up a project document recompile the source code. Generation needs of the library.
Platform: | Size: 304377 | Author: 陈叙圆 | Hits:

[JSP/Javatestshape

Description: 3. 设计一个接口Shape,接口中包含方法:Draw和Resize。定义一些具体类,如:Point、Line、Circle、Rectangle等,每个类都实现接口Shape。Draw方法绘制图形,Resize方法改变图形大小。用Java实现这些接口和类,并用测试类测试它们。 注意:不需要真正绘制图形,如Line的Draw方法只需输出下面文本即可: “直线的起点是(x1,y1,),终点是(x2,y2)”-3. A Shape interface design, interfaces include : Draw and Resize. Some specific type definition, such as : Point, Line, Circle, Rectangle, each category are achieving Shape interface. Draw method of drawing, graphics Resize changed size. Using Java to achieve these interfaces and class, and use tests such testing. Note : no real drawing, such as the Draw Line method, only the following text can be output : "line is the starting point (x1, y1), and the ultimate goal is to (x2, y2)"
Platform: | Size: 978 | Author: 吴泽伟 | Hits:

[GUI Developbrew window manager

Description:

 

Objective
This topic describes how to create a windowed application that will share the display with other applications.
Brew® MP windowed applications need to be written differently than traditional Brew MP applications. Traditional Brew MP applications, when running in the foreground, occupy full screen space and can modify the display at any time. In the windowing framework, multiple applications share the display at the same time and are not allowed to modify the display arbitrarily. A windowed application also needs to create one or more widgets to be used to create the windows.
A windowed application needs to:
·                  Create and initialize one or more widgets to be passed to IWindowMgr_CreateWindow().
The application can implement its own IWidget, or it can make use of an existing IWidget.
·                  Handle the EVT_APP_START_WINDOW event (and create a window).
·                  Implement handlers for visibility changes, focus changes, and extent changes. The implementation of these handlers is dependent on the details of the application.
·                  Draw in two stages:
·                                  Tell the container that drawing is necessary (ICONTAINER_Invalidate()).
·                                  Draw only when told to draw by the container (IWIDGET_Draw()).
Note: A windowed application should not call any functions that modify IDisplay directly. This includes explicit IDisplay function calls or implicit updates, such as calls to IIMAGE_Draw() or ICONTROL_Redraw(). Drawing should happen only on demand, for example, when IWIDGET_Draw() is called for the widget used to create the window. Existing Widget based applications follow these guidelines and, with minor modifications, can be ported to the windowing framework.
Event handling
A windowed application must respond to these events:
EVT_APP_START_WINDOW and EVT_APP_START
A window-based application receives EVT_APP_START_WINDOW first. If the application returns TRUE for this event, the application does not receive EVT_APP_START. If an application needs to support both the environments (window based and non-window based), it should handle both events.
When the application receives EVT_APP_START_WINDOW, it should create one or more windows.
If creation of IWindowMgr0 fails while handling EVT_APP_START_WINDOW, the application should assume that the platform does not support window-based applications. In this case, the application should return FALSE and continue the application logic in the code for EVT_APP_START.
EVT_APP_SUSPEND and EVT_APP_RESUME
After an application returns TRUE for EVT_APP_START_WINDOW, it will not receive EVT_APP_SUSPEND and EVT_APP_RESUME as non-windowed Brew MP applications do. Instead, the application must check for window status events that are sent to the widget through EVT_WDG_SETPROPERTY events. For EVT_WDG_SETPROPERTY events, wParam indicates which property was set, and dwParam specifies the value of the property. When the AEEWindowMgrExt_PROPEX_STATE property has a value of AEEWindowMgrExt_STATE_VISIBLE, the window is visible.
EVT_WDG_WINDOWSTATUS
The EVT_WDG_WINDOWSTATUS event is sent to a widget to notify it about various window related status messages. AEEWindowStatus.h contains information on the meaning of various status messages.
Sample code location

ZIP filename
Location
Run app
hellowindowapp
Brew MP Library
·                       Download and extract the ZIP file.
·                       Compile the app.
·                       Run it on the Brew MP Simulator.

Example of a windowed application
In the hellowindowapp sample, HelloWindowApp_HandleEvent handles the EVT_APP_START_WINDOW event and creates soft key and pop-up windows:
   case EVT_APP_START_WINDOW:   
      DBGPRINTF("EVT_APP_START_WINDOW");
 
      // Create the softkey and popup windows
      HelloWindowApp_CreateSoftkey(pMe);
      HelloWindowApp_CreateOrActivatePopup(pMe);
 
      // Handling this event tells Brew that we are a windowing
      // application.
      return TRUE;  
HelloWindowApp_CreateSoftkey() creates the soft key widget, sets the color text of the widget, then calls HelloWindowApp_CreateWindow() to create the window.
   WidgetWindow *pWindow = &pMe->softkeyWindow;
  
   if (pWindow->piWindowWidget != NULL) return;
   pWindow->pszDbgName = "Softkey";
   pWindow->pMe = pMe;
  
   (void) ISHELL_CreateInstance(pMe->applet.m_pIShell, AEECLSID_SoftkeyWidget,
            (void **) &pWindow->piWindowWidget);
   if (pWindow->piWindowWidget == NULL) return;
 
   {
      WidgetExtent extent = {0, HWA_SOFTKEY_HEIGHT};
      IWidget_SetExtent(pWindow->piWindowWidget, &extent);
   }
  
   (void) IWidget_SetBGColor(pWindow->piWindowWidget, MAKE_RGBA(200,200,200,255));
  
   // Now set the softkeys text
   {
      IWidget *piTextWidget = NULL;
      (void) IWidget_GetSoftkey(pWindow->piWindowWidget, PROP_SOFTKEY1, &piTextWidget);
     
      if (piTextWidget != NULL) {
         (void) IWidget_SetText(piTextWidget, L"Hover", TRUE);
      }
      RELEASEIF(piTextWidget);
 
      (void) IWidget_GetSoftkey(pWindow->piWindowWidget, PROP_SOFTKEY2, &piTextWidget);
      if (piTextWidget != NULL) {
         (void) IWidget_SetText(piTextWidget, L"Close", TRUE);
      }
      RELEASEIF(piTextWidget);
   }
 
   HelloWindowApp_CreateWindow(pMe, pWindow, AEEWindowMgrExt_CLASS_Softkey);  
HelloWindowApp_CreateWindow() creates the soft key window, as follows:
   int result;
   uint32 winId;
   AEEWindowProp propList[1];
  
   // Set custom window handler
   HANDLERDESC_Init(&pWindow->hdHandler, HelloWindowApp_WindowHandler, pWindow, NULL);
   IWIDGET_SetHandler(pWindow->piWindowWidget, &pWindow->hdHandler);
        
   propList[0].id = AEEWindowMgrExtProp_CLASS;
   propList[0].pbyLen = sizeof(winClass);
   propList[0].pby = (void *) &winClass;
     
   result = IWindowMgr_CreateWindow(pMe->piWindowMgr, (IQI*) (void *) pWindow->piWindowWidget,
      propList, ARR_SIZE(propList), &winId);
 
   if (result != SUCCESS) {
      DBGPRINTF("Window creation failed for %s: %d", pWindow->pszDbgName, result);
      HelloWindowApp_DestroyWindow(pWindow);
   } else {
      DBGPRINTF("Window %s created: id=%d", pWindow->pszDbgName, winId);
   }
HelloWindowApp_CreateOrActivatePopup() creates the widget for the pop-up window, then calls HelloWindowApp_CreateWindow() to create the pop-up window.
   pWindow->piWindowWidget = HelloWindowApp_CreateAndInitImageWidget(
                                pMe,
                                "popups.main" // Image as defined in appinfo.ini
                             );
 
   if (pWindow->piWindowWidget == NULL) return;
 
   {
      WExtent extent = {HWA_POPUP_WIDTH, HWA_POPUP_HEIGHT};
      IWIDGET_SetExtent(pWindow->piWindowWidget, &extent);
   }
 
   HelloWindowApp_CreateWindow(pMe, pWindow, AEEWindowMgrExt_CLASS_Popup);
Related information
·                  See Brew MP Widgets Technology Guide: Creating a Widgets application
·                  See Brew MP API Reference

Base version:
Brew MP 1.0
Tested version:
Brew MP 1.0
Phone tested:
No

 

Platform: | Size: 439828 | Author: bluecrest | Hits:

[JSP/Javatestshape

Description: 3. 设计一个接口Shape,接口中包含方法:Draw和Resize。定义一些具体类,如:Point、Line、Circle、Rectangle等,每个类都实现接口Shape。Draw方法绘制图形,Resize方法改变图形大小。用Java实现这些接口和类,并用测试类测试它们。 注意:不需要真正绘制图形,如Line的Draw方法只需输出下面文本即可: “直线的起点是(x1,y1,),终点是(x2,y2)”-3. A Shape interface design, interfaces include : Draw and Resize. Some specific type definition, such as : Point, Line, Circle, Rectangle, each category are achieving Shape interface. Draw method of drawing, graphics Resize changed size. Using Java to achieve these interfaces and class, and use tests such testing. Note : no real drawing, such as the Draw Line method, only the following text can be output : "line is the starting point (x1, y1), and the ultimate goal is to (x2, y2)"
Platform: | Size: 1024 | Author: | Hits:

[GDI-BitmapRectTracker

Description: MFC 带有一个 CRectTracker 类. 用来画出所谓的橡皮条矩形. 但在 WTL 里面, 没有对应的类. 所以,自己写了一个非常简单的 mix-in class, 在 WTL 里面使用, 将这个类作为您的窗口的基类即可让窗口具有画橡皮条矩形的行为.上载的压缩文件包含两个源文件, RectTracker.h 即为这个 mix-in class. SnapShotWnd.h 为使用这个类的一个窗口. 还有一张屏幕抓图, 从图片可以看出这个窗口的功能, 他实现类似透明窗口的功能. 注意那个虚线框, 就是 CRectTracker 画出来的.-MFC with a CRectTracker category. To draw of the so-called rubber rectangle. The WTL, there's no corresponding category. So they want to write a very simple mix-in class, the WTL is used to this category as your window so that the base class can be painted with rubber window the behavior of the rectangle. on the compressed file contains two sources, namely the RectTracker.h mix-in class. SnapShotWnd.h for the use of this kind of a window. Previously there a screen, pictures can be seen from the window of the function, he achieved similar functions transparent window . Note that dash is the CRectTracker painting.
Platform: | Size: 50176 | Author: 肖吉 | Hits:

[GIS programMapDisplay

Description: MapDisplay 是一个矢量图形读取与编辑软件。我们自定义文件格式包括点、线、面、注记四大方面,对于点我们主要读取它的ID、颜色、坐标,而线另外包括线形、线宽,面则另外包括填充色,注记主要是记录ID、颜色、坐标、字体信息,对于这四方面,我们还读一个标记flag,以决定是用基本方法绘图还是用符号库来绘图。另外,为了兼容性,我们也设定它能直接读DXF文件,以处理来自AUTOCAD、Corel Draw等矢量图形编辑软件的数据。 MapDisplay的功能包括读文件并以合适大小来显示地图,并能进行放大、缩小、开窗、平移、旋转、复原、保存位图、转换文件格式、双视图互相操作、数据库查询等。 -MapDisplay is a vector graphics editor and reader software. Since the definition of file formats, including point, line, surface, the four NOTE regard, we read it in the main ID, color, coordinates and other lines including linear, linewidth, the other side, including color filled, mainly Note Records ID, color coordinates, font Information for this four, we also read a marker flag. a decision is the basic method used symbols or graphics to graphics library. Furthermore, in order to compatibility, we have set it can directly read DXF files to deal with from AutoCAD, Corel Draw and other vector graphics editing software data. MapDisplay features include reading the paper in a suitable size to show maps and conduct zoom in and out, windows, translation, rotation, rehabilitation, preservation
Platform: | Size: 1652736 | Author: | Hits:

[VC/MFCS1D13717API_hanshu

Description: S1D13717API函数说明.所有的工程文件都是针对EPSON的WORK BENCH 33制定的。原库文件也是使用WORK BENCH 33编译生成的。 如果你使用了不同的开发工具和编译器,你需要制定相应的的工程文件重新编译源代码,生成需要的库。-S1D13717API function note. All works documents are directed at the WOR EPSON BENCH 33 K enacted. The original document is the use WORK BENCH 33 compiler generated. If you use a variety of development tools and compilers, you need to draw up a project document recompile the source code. Generation needs of the library.
Platform: | Size: 304128 | Author: 陈叙圆 | Hits:

[Graph DrawingDrawPolyG

Description: MFC画多边形 先单击左键,移开鼠标,单击右键就可以画出一条直线,再移开鼠标,双击右键就可以画出个三角形。 其他多边形,以此类推。 注意,以“单击左键”开始。 本程序只完成简单的功能。-MFC painting left polygon first click, remove the mouse, right-click can draw a straight line, and then move the mouse, double-click right triangles can be drawn. Other polygon, and so on. Note that the left click Start. This procedure only simple functions.
Platform: | Size: 2048 | Author: 王大兵 | Hits:

[SCMPADS

Description: 该文档为电路图画图软件PADS的介绍说明,元件如何绘制电路图-The document for the circuit diagram drawing software PADS note of introduction, how to draw circuit components
Platform: | Size: 14778368 | Author: 时晓霞 | Hits:

[Windows Developpopcapframework_1_3

Description: popcapframework1.3版,这是著名的PopCap游戏公司,不知道的话,祖玛应该知道吧,这些游戏都是用这个框架开发的,现在PopCap将它开源了!-PopCap Games Framework Version 1.3 Changes General * Removed support for Visual Studio/Visual C++ 6. If you use these versions, you will need to update your project files manually. o Note: you can download Visual Studio 2005 Express edition for free from Microsoft (http://msdn.microsoft.com/vstudio/express/) * PAKfile support- See docs/Pak Resource File Support.doc * Added support for wide displays and for windowed emulation of wide displays. * Some wide string/localization related changes to strings/chars: Use the WideString.vcproj projects for widestring support * Added support to draw anti-aliased lines/polygons. * Cached WAV files are "encrypted" (weakly) to prevent the easy copying of sound resources. * All demos were made to be widestring compatible and we added corresponding widestring projects. std::string has been replaced with SexyString, char with SexyChar, and a few std::string to SexyString conversion functions are no
Platform: | Size: 8726528 | Author: blueseaineye | Hits:

[assembly languagematlabxueqi

Description: 小学期的源程序 1.试编MATLAB程序。信号 sinc(10*t),-2<=t<=2 m(t)= 0,其它 用100hz的载波来产DSB信号并解调。完成下列工作: 画出已调信号; 求已调信号的频谱,并用图像表示。 画出解调信号; 求解调信号的频谱,并用图像表示。 2.信号 sinc2(100t),|t|≤t0 m(t)= 0, 其它 采用频率调制调制为1000HZ的载波。频偏常数为kf=50,t0=0.2。 注:(求和代替积分) 3.信号 2, t0/3>t>0 m(t)= -6, t0/3<=t<2*t0/3 0, 其它 t0=0.15,使用AM调制和包络检波解调.-Primary phase of source 1. Test procedures for MATLAB. Signal sinc (10* t),-2 < = t < = 2 m (t) = 0, the other with the 100hz signal carrier to the middle class and DSB demodulation. To complete the following tasks: Draw has been transferred signal for the spectrum signals have been adjusted, and image representation. Draw demodulation signal solving transfer spectrum signal, and image representation. 2. Signal sinc2 (100t), | t | ≤ t0 m (t) = 0, the other the use of frequency modulation of the carrier modulation for 1000HZ. Offset constant kf = 50, t0 = 0.2. Note: (sum in lieu of points) 3. Signal 2, t0/3> t> 0 m (t) =-6, t0/3 < = t < 2* t0/3 0, other t0 = 0.15, the use of AM modulation and demodulation envelope detector.
Platform: | Size: 3072 | Author: 张静 | Hits:

[ListView/ListBoxExtendListBox

Description: 一个CListBox扩展类,可以实现ListBox各行颜色不同,并且可以设置不可选择项。注:ListBox属性必须:Owner draw:Variable,Has strings选项打钩。-CListBox expand a category, you can achieve different color lines ListBox, and can not select items can be set. Note: ListBox properties must be: Owner draw: Variable, Has strings option打钩.
Platform: | Size: 4096 | Author: 何何 | Hits:

[JSPUMLforJavaprogrammers

Description: UML(统一建模语言)是一个绘制软件概念图的图形化记法(notation)。人们可以用它绘制图形,用这些图形来表示一个计划进行的软件设计的问题域,或者用这些图来表示一个已经完成的软件实现。Fowler(译者注:著名IT技术作家)描述它们时分成了三种不同的层次:概念层(Conceptual)、规格说明层(Specification)和实现层(Implementation),我们将细述后面两种。-UML (Unified Modeling Language) is a conceptual diagram drawing software graphical notation (notation). People can use it to draw graphics, these graphics to indicate a plan to design the software domain, or use one of these plans has been completed to show that the realization of the software. Fowler (Translator s Note: The well-known IT technical writer) has become a description of their hours in three different levels: the concept of layers (Conceptual), layer specification (Specification) and the achievement level (Implementation), we will detail two behind.
Platform: | Size: 2203648 | Author: 一度 | Hits:

[OpenGL programproj1

Description: 在Windows系统中,安装GLUT库:打开glut-3.7.6-bin.zip,取出glut.h,glut32.lib,glut32.dll,分别放置。 使用Visual Studio C++编译已有项目工程,并修改代码生成以下图形: 在此基础上,修改各顶点颜色,使得每个顶点颜色不一样,多边形内部颜色渐变。 操作方法和实验步骤: 1.使用GL_POLYGON模式绘制白色的多边形,由于所绘多边形为凹多边形,故从最左上角的点开始绘制,以防得到不可预测的图形。注意求得各凹角(reflex convex)处的顶点坐标。 2.下面考虑修改各顶点颜色。首先多边形绘制改为从位于图形中心的(0,0)处开始,并设为白色。 3.此后对于六个凹角处的顶点分别设定其颜色为黄色,绿色,青色,蓝色,洋红色及红色。默认状态下多边形将出现渐变的效果。 4.此时运行程序将得到如右图所示效果:为此,我们再次绘制前面所绘制的第一个多边形顶点,即可得到所要求图形。 -In the Windows system, install the GLUT libraries: Open glut-3.7.6-bin.zip, remove glut.h, glut32.lib, glut32.dll, were placed. The use of Visual Studio C++ compiler has been the project works, and modify the code generates the following graph: On this basis, modify the vertex colors to make different colors for each vertex, polygon internal color gradient. Operational methods and experimental steps: 1. Use GL_POLYGON draw white polygon models, as painted concave polygon as a polygon, so starting from the most upper left point rendering, in case the graphics to be unpredictable. Note to seek the concave angle (reflex convex) at the vertex coordinates. 2. The following consider amending the vertex colors. First, change from the rendering polygon graphics center located at (0,0) at the beginning, and set to white. 3. Then for the six respective concave corner vertex set its color to yellow, green, cyan, blue, magenta and red colors. Polygon will appear by default gradient e
Platform: | Size: 6144 | Author: 小痴狗子 | Hits:

[VC/MFCnote

Description: 对于直线/多边形的裁剪实验,要求实现标准矩形窗口的裁剪,窗口边界由键盘输入或鼠标确定,直线/多边形都是任意的。裁剪后的图形要准确,不能多或者少点。 要求掌握各自算法的基本原理和算法设计,画出算法实现的程序流程图,使用C或者VC++实现算法,并演示。 -For the straight line/polygon clipping experiments required to achieve the standard rectangular window clipping, the window borders from the keyboard or mouse to determine a straight line/polygons are arbitrary. After cutting the graphics to be accurate, no more or less. Required to master the basic principles of each algorithm and algorithm design, draw algorithm flow chart of procedures for the use of C or VC++ algorithm, and demonstrate.
Platform: | Size: 2118656 | Author: linym | Hits:

[Graph programDraw

Description: 用VC++6.0写的,实现绘制点、线、面、注记等地图要素,用map类管理起来。还有点的大小、线型,颜色、注记字体的设置!-Written with VC++6.0 to achieve draw points, lines, planes, notes and other map features, together with a map class management. Also point size, line, color, font settings Note!
Platform: | Size: 3439616 | Author: 许庆领 | Hits:

[3D GraphicCSharp-test-DX-draw-a-line-speed

Description: 该程序用C#编程,能够画出直线,并能测出画直线的时间等等(注:在画直线的那设个断点,才能看到时间),切记,该程序很经典-The program in c# programming, can draw a straight line, and the time can measure the draw a line and so on (note: draw a line in the set breakpoints, can see time), remember, this program is very classical
Platform: | Size: 38912 | Author: Guoshuhua | Hits:

[GDI-BitmapMFC-GDIP-Draw-Picture

Description: 之前研究了很久GDI+,也一直看不到,因为一直都不动手,今天偶然百度查询资料,终于实现了GDI+绘图的基本流程了,因此总结下基本编写代码的流程,分为单文档,和对话框两种方式来绘图,也写出了注意要点,在此分享,也方便以后自己使用-Studied for a long time before GDI+, also have failed to see, as they have no hands, today occasionally Baidu query data, and finally achieve the basic processes GDI+ drawing, and therefore concluded under the basic process of writing code, into a single document, and dialogue two ways to frame the drawing, also wrote the points to note in this share, but also easy to use after their own
Platform: | Size: 425984 | Author: 温先浪 | Hits:
« 12 3 »

CodeBus www.codebus.net