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
- Zum Hauptteil springen [direct]
- Electron [direct]
- Dokumentation [direct]
- API [direct]
- Blog [direct]
- Electron Forge [direct]
- Elektro-Fiddle [direct]
- Kontrolle [direct]
- Showcase [direct]
- Ressourcen [direct]
- Veröffentlichungen [direct]
- English [direct]
- Español [direct]
- Français [direct]
- 日本語 [direct]
- Português [direct]
- Русский [direct]
- 中文 [direct]
- autoUpdater [direct]
- BaseWindow [direct]
- BrowserView Deprecated [direct]
- BrowserWindow [direct]
- clipboard [direct]
- contentTracing [direct]
- crashReporter [direct]
- desktopCapturer [direct]
- dialog [direct]
- globalShortcut [direct]
- inAppPurchase [direct]
- ipcMain [direct]
- Menu [direct]
- MenuItem [direct]
- MessageChannelMain [direct]
- MessagePortMain [direct]
- nativeImage [direct]
- nativeTheme [direct]
- net [direct]
- netLog [direct]
- Notification [direct]
- powerMonitor [direct]
- powerSaveBlocker [direct]
- process [direct]
- protocol [direct]
- pushNotifications [direct]
- safeStorage [direct]
- screen [direct]
- session [direct]
- sharedTexture [direct]
- ShareMenu [direct]
- shell [direct]
- systemPreferences [direct]
- TouchBar [direct]
- Tray [direct]
- utilityProcess [direct]
- webContents [direct]
- WebContentsView [direct]
- webFrameMain [direct]
- View [direct]
- Benutzerdefinierte DOM-Elemente [direct]
- Chromium und Node.js [direct]
- Klassen [direct]
- API-Strukturen [direct]
- Main [direct]
- EventEmitter [direct]
- the FAQ [direct]
- Diese Seite bearbeiten [direct]
- Performance [direct]
- Sicherheit [direct]
- Discord [direct]
- Bluesky [direct]
- X [direct]
- Mastodon [direct]
- Stack Overflow [direct]
- GitHub [direct]
- Open Collective [direct]
- Infrastruktur Dashboard [direct]
- OpenJS Foundation [direct]
- Markenrichtlinie [direct]
- Markenliste [direct]
- Nutzungsbedingungen [direct]
|
|