SOLFIND
Web Lens
Portal home

ImageView | Electron

https://www.electronjs.org/de/docs/latest/api/image-view • 46 KB fetched
Open original page


ImageView | Electron Zum Hauptteil springen Electron Dokumentation API Blog Tools * Electron Forge * Elektro-Fiddle Community * Kontrolle * Showcase * Ressourcen Veröffentlichungen Deutsch * English * Deutsch * Español * Français * 日本語 * Português * Русский * 中文 Suche * Hauptprozessmodule * app * autoUpdater * BaseWindow * BrowserView * Deprecated * BrowserWindow * clipboard * contentTracing * crashReporter * desktopCapturer * dialog * globalShortcut * ImageView * inAppPurchase * ipcMain * Menu * MenuItem * MessageChannelMain * MessagePortMain * nativeImage * nativeTheme * net * netLog * Notification * powerMonitor * powerSaveBlocker * process * protocol * pushNotifications * safeStorage * screen * session * sharedTexture * ShareMenu * shell * systemPreferences * TouchBar * Tray * utilityProcess * webContents * WebContentsView * webFrameMain * View * Renderer Prozessmodule * Utility Process Modules * Benutzerdefinierte DOM-Elemente * Chromium und Node.js * Klassen * API-Strukturen * * Hauptprozessmodule * ImageView Auf dieser Seite ImageView A View that displays an image. Process: Main This module cannot be used until the ready event of the app module is emitted. Useful for showing splash screens that will be swapped for WebContentsView s when the content finishes loading. Note that ImageView is experimental and may be changed or removed in the future. const { BaseWindow , ImageView , nativeImage , WebContentsView } = require ( 'electron' ) const path = require ( 'node:path' ) const win = new BaseWindow ( { width : 800 , height : 600 } ) // Create a "splash screen" image to display while the WebContentsView loads const splashView = new ImageView ( ) const splashImage = nativeImage . createFromPath ( path . join ( __dirname , 'loading.png' ) ) splashView . setImage ( splashImage ) win . setContentView ( splashView ) const webContentsView = new WebContentsView ( ) webContentsView . webContents . once ( 'did-finish-load' , ( ) => { // Now that the WebContentsView has loaded, swap out the "splash screen" ImageView win . setContentView ( webContentsView ) } ) webContentsView . webContents . loadURL ( 'https://electronjs.org' ) Class: ImageView extends View ​ History Version(s) Changes None API ADDED A View that displays an image. Process: Main ImageView inherits from View . ImageView is an EventEmitter . Warnung Electron's built-in classes cannot be subclassed in user code. For more information, see the FAQ . new ImageView() Experimental ​ History Version(s) Changes None API ADDED Creates an ImageView. Beispiel Methoden ​ The following methods are available on instances of the ImageView class, in addition to those inherited from View : image.setImage(image) Experimental ​ History Version(s) Changes None API ADDED * image NativeImage Sets the image for this ImageView . Note that only image formats supported by NativeImage can be used with an ImageView . Diese Seite bearbeiten Vorherige globalShortcut Nächste inAppPurchase * Class: ImageView extends View * new ImageView() Experimental * Beispiel Methoden * setImage Dokumentation * Erste Schritte * API-Referenz Checklisten * Performance * Sicherheit Tools * Electron Forge * Elektro-Fiddle Community * Kontrolle * Ressourcen * Discord * Bluesky * X * Mastodon * Stack Overflow Mehr * GitHub * Open Collective * Infrastruktur Dashboard Copyright OpenJS Foundation und Electron Mitwirkenden. Alle Rechte vorbehalten. Die OpenJS Foundation hat eingetragene Marken und verwendet Marken. Für eine Liste der Marken der OpenJS Foundation , lesen Sie bitte unsere Markenrichtlinie und Markenliste . Marken und Logos nicht auf der Liste der Marken der OpenJS Foundation sind Marken™ oder eingetragene® Marken ihrer jeweiligen Inhaber. Der Gebrauch von ihnen impliziert keine Zugehörigkeit oder Zustimmung von ihnen. Die OpenJS Foundation | Nutzungsbedingungen | Datenschutzrichtlinie | Satzung | | | Markenrichtlinie | Markenliste | Cookie Policy Hosting and infrastructure graciously provided by

Links found on this page

  1. Zum Hauptteil springen [direct]
  2. Electron [direct]
  3. Dokumentation [direct]
  4. API [direct]
  5. Blog [direct]
  6. Electron Forge [direct]
  7. Elektro-Fiddle [direct]
  8. Kontrolle [direct]
  9. Showcase [direct]
  10. Ressourcen [direct]
  11. Veröffentlichungen [direct]
  12. English [direct]
  13. Español [direct]
  14. Français [direct]
  15. 日本語 [direct]
  16. Português [direct]
  17. Русский [direct]
  18. 中文 [direct]
  19. autoUpdater [direct]
  20. BaseWindow [direct]
  21. BrowserView Deprecated [direct]
  22. BrowserWindow [direct]
  23. clipboard [direct]
  24. contentTracing [direct]
  25. crashReporter [direct]
  26. desktopCapturer [direct]
  27. dialog [direct]
  28. globalShortcut [direct]
  29. inAppPurchase [direct]
  30. ipcMain [direct]
  31. Menu [direct]
  32. MenuItem [direct]
  33. MessageChannelMain [direct]
  34. MessagePortMain [direct]
  35. nativeImage [direct]
  36. nativeTheme [direct]
  37. net [direct]
  38. netLog [direct]
  39. Notification [direct]
  40. powerMonitor [direct]
  41. powerSaveBlocker [direct]
  42. process [direct]
  43. protocol [direct]
  44. pushNotifications [direct]
  45. safeStorage [direct]
  46. screen [direct]
  47. session [direct]
  48. sharedTexture [direct]
  49. ShareMenu [direct]
  50. shell [direct]
  51. systemPreferences [direct]
  52. TouchBar [direct]
  53. Tray [direct]
  54. utilityProcess [direct]
  55. webContents [direct]
  56. WebContentsView [direct]
  57. webFrameMain [direct]
  58. View [direct]
  59. Benutzerdefinierte DOM-Elemente [direct]
  60. Chromium und Node.js [direct]
  61. Klassen [direct]
  62. API-Strukturen [direct]
  63. Main [direct]
  64. EventEmitter [direct]
  65. the FAQ [direct]
  66. Diese Seite bearbeiten [direct]
  67. Performance [direct]
  68. Sicherheit [direct]
  69. Discord [direct]
  70. Bluesky [direct]
  71. X [direct]
  72. Mastodon [direct]
  73. Stack Overflow [direct]
  74. GitHub [direct]
  75. Open Collective [direct]
  76. Infrastruktur Dashboard [direct]
  77. OpenJS Foundation [direct]
  78. Markenrichtlinie [direct]
  79. Markenliste [direct]
  80. Nutzungsbedingungen [direct]