Package pi
Class Image
java.lang.Object
pi.actor.Actor
pi.actor.Image
pi.Image
- All Implemented Interfaces:
FrameUpdateListenerRegistration,KeyStrokeListenerRegistration,MouseClickListenerRegistration,MouseScrollListenerRegistration
- Direct Known Subclasses:
Box,ImageRobot
Ein Bild als grafische Repräsentation einer Bilddatei, die gezeichnet
werden kann.
Diese Klasse ist identisch mit Image. Sie steht hier, damit
sie über das Hauptpaket importiert werden kann, also import pi.Image;
- Since:
- 0.42.0
- Author:
- Josef Friedrich
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionImage(BufferedImage image) Erzeugt ein Bild durch Angabe eines bereits im Speicher vorhandenen Bilds vom DatentypBufferedImage.Erzeugt ein Bild durch Angabe des Verzeichnispfads. -
Method Summary
Methods inherited from class pi.actor.Image
aspectRatio, flippedHorizontally, flippedHorizontally, flippedVertically, flippedVertically, height, height, image, image, image, pixelPerMeter, pixelPerMeter, reset, size, toggleFlipHorizontally, toggleFlipVertically, width, widthMethods inherited from class pi.actor.Actor
addCollisionListener, addCollisionListener, addCollisionListener, addMountListener, addUnmountListener, anchor, anchor, anchor, anchorformatted, angularDamping, angularDamping, angularVelocity, angularVelocity, animateColor, animateOpacity, animateParticle, applyForce, applyForce, applyForce, applyImpulse, applyImpulse, applyImpulse, applyRotationImpulse, applyTorque, awake, bodyType, bodyType, center, center, center, centerRelative, collisions, color, color, color, complementaryColor, contains, createDistanceJoint, createPrismaticJoint, createRevoluteJoint, createRopeJoint, createWeldJoint, density, density, fixture, fixtures, fixtures, frameUpdateListeners, friction, friction, gravityScale, gravityScale, hide, isGrounded, isMounted, isRotationLocked, isVisible, keyStrokeListeners, layer, layerPosition, layerPosition, linearDamping, linearDamping, listenerBundle, lockRotation, makeDynamic, makeKinematic, makeParticle, makeSensor, makeStatic, mass, mouseClickListeners, mouseScrollListeners, moveBy, moveBy, opacity, opacity, overlaps, remove, removeMountListener, removeUnmountListener, resetMovement, restitution, restitution, rotateBy, rotation, rotation, rotationLocked, show, sleep, toggleVisible, toStringFormatter, velocity, velocity, visible, x, x, y, yMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface pi.event.FrameUpdateListenerRegistration
addFrameUpdateListener, defer, delay, removeFrameUpdateListener, repeat, repeat, repeat, repeat, repeatMethods inherited from interface pi.event.KeyStrokeListenerRegistration
addKeyStrokeListener, removeKeyStrokeListenerMethods inherited from interface pi.event.MouseClickListenerRegistration
addMouseClickListener, removeMouseClickListenerMethods inherited from interface pi.event.MouseScrollListenerRegistration
addMouseScrollListener, removeMouseScrollListener
-
Constructor Details
-
Image
Erzeugt ein Bild durch Angabe des Verzeichnispfads.- Parameters:
image- Der Verzeichnispfad des Bilds, das geladen werden soll.
-
Image
Erzeugt ein Bild durch Angabe eines bereits im Speicher vorhandenen Bilds vom DatentypBufferedImage.- Parameters:
image- Ein bereits im Speicher vorhandenes Bild vom DatentypBufferedImage.
-