如何清除timage控件中的图形(clear the graphics in a timage control)

Delphi程序员使用TImage控件来显示图像。这些文件的扩展名包括ICO、BMP、WMF、WMF、GIF和JPG。Picture属性指定显示在TImage控件中的图像。Delphi支持几种不同的方法为TImage组件分配图像:例如,TPicture的LoadFromFile方法从磁盘读取图形,或者Assign方法从剪贴板获取图像。...

Delphi程序员使用TImage控件来显示图像。这些文件的扩展名包括ICO、BMP、WMF、WMF、GIF和JPG。Picture属性指定显示在TImage控件中的图像。Delphi支持几种不同的方法为TImage组件分配图像:例如,TPicture的LoadFromFile方法从磁盘读取图形,或者Assign方法从剪贴板获取图像。

girl programming on a desktop computer

如果没有清除Picture属性的直接命令,则需要为其指定一个“nil”对象。这样做基本上会使图像空白。

对于名为Photo的TImage控件,请使用以下两种方法之一清除指定的图形:

{code:delphi}Photo.Picture:=nil;{code}

或:

{代码:delphi}Photo.Picture.Assign(无);{code}

任一代码块都将清除TImage控件中的图片。第一种方法将nil值断言为图片属性;第二种方法通过使用方法来分配nil。

  • 发表于 2021-09-15 04:07
  • 阅读 ( 188 )
  • 分类:IT

你可能感兴趣的文章

您应该知道的基本windows cmd命令

... GRAFTABL - Enables Windows to display an extended character set in graphics mode. ...

  • 发布于 2021-03-15 18:07
  • 阅读 ( 330 )

40多个最常用的linux终端命令

... sudo [command1] ). If you want to run a graphical program with superuser privileges, use gksudo followed by the executable file for the program. t...

  • 发布于 2021-03-15 21:40
  • 阅读 ( 258 )

如何检查linux上安装了哪个gpu

...0:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
 Subsystem: ASUSTeK Computer Inc. 3rd Gen Core processor Graphics Controller
 Flags: bus master, fast devsel, latency 0, IRQ 33
 Memory at f7400000 (64-bi...

  • 发布于 2021-04-02 16:40
  • 阅读 ( 237 )

围绕可调整大小的对象的八个白色正方形叫什么?

...e ***creen control points to resize the rectangle. An article on resizing graphics in CS5 In the default scaling mode, the selection scales graphic elements from the control point opposite the one you are dragging. From Microsoft Office 2003 in 10 Simple Steps or Less By Michael De**ond When you...

  • 发布于 2021-04-08 07:37
  • 阅读 ( 250 )

增加内存是如何显著提高amd apu的游戏性能的?

...oticed you are using an AMD APU. These chips combine a CPU with a built-in graphics processor (GPU), eliminating the need for a discrete graphics card (at least for lighter workloads). Because AMD APUs use the system memory as graphics memory, integrated GPU performance is highly dependent on memory...

  • 发布于 2021-04-11 07:51
  • 阅读 ( 264 )

kde应用程序如何在gnome下运行?

...答案: This is possible because these desktop environments use the same graphics system, X11. All graphical programs only talk the X11 protocol with an X server (usually Xorg), sending commands to draw this or that, and receiving input events (mouse, keyboard, etc.). Each UI toolkit like GTK or Q...

  • 发布于 2021-04-11 10:59
  • 阅读 ( 148 )

如何在使用nvidia、amd或intel图形的pc游戏中强制使用图形选项

...果您没有安装NVIDIA控制面板、AMD Catalyst Control Center或Intel Graphics and Media Control Panel,则可能需要从硬件**商网站为您的硬件安装相应的图形驱动程序包。通过Windows Update提供的驱动程序不包括诸如NVIDIA控制面板或AMD Catalyst Control Cen...

  • 发布于 2021-04-11 14:53
  • 阅读 ( 217 )

cpu和gpu如何交互以呈现计算机图形?

Your computer’s Central Processing Unit (CPU) and Graphics Processing Unit (GPU) interact every moment you’re using your computer to deliver you a crisp and resp***ive visual interface. Read on to better understand how they work together. 斯肯内尔摄。 今天的问答环节是由SuperUser...

  • 发布于 2021-04-12 06:51
  • 阅读 ( 282 )

如何从图形或线性艺术中删除背景

[email protected], where they may be featured on How-To Geek in an upcoming graphics article. 图片来源:Toriyama博士的插图,未经许可使用,假定为合理使用。

  • 发布于 2021-04-12 11:21
  • 阅读 ( 184 )

windows pc的20个最佳快捷键和热键提示

...vileges, you probably get annoyed at having to go through the User Account Control (UAC) dialog box every time. If you know that what you are doing is safe and you trust the tool you are using, you can easily set up a shortcut that will run the tool in administrator mode that doesn’t prompt you wi...

  • 发布于 2021-04-13 09:23
  • 阅读 ( 261 )
528660037
528660037

0 篇文章

相关推荐