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, double pixelPerMeter) Konstruktor für ein Bildobjekt.Konstruktor für ein Bildobjekt.Erzeugt ein Bild durch Angabe des Verzeichnispfads und der Abmessungen in Meter. -
Method Summary
Methods inherited from class pi.actor.Image
flipHorizontally, flippedHorizontally, flippedVertically, flipVertically, height, image, image, image, image, image, image, imageSize, imageSize, isFlippedHorizontally, isFlippedVertically, widthMethods inherited from class pi.actor.Actor
addCollisionListener, addCollisionListener, addCollisionListener, addMountListener, addUnmountListener, angularDamping, angularDamping, angularVelocity, angularVelocity, 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, position, position, position, positionformatted, remove, removeMountListener, removeUnmountListener, resetMovement, restitution, restitution, rotateBy, rotation, rotation, rotationLocked, show, sleep, toggleVisible, 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 und der Abmessungen in Meter.Entsprechen die Eingabeparameter für Breite und Höhe nicht den Abmessungen des Bildes, dann wird das Bild verzerrt dargestellt.
- Parameters:
filepath- Der Verzeichnispfad des Bilds, das geladen werden soll.width- Die Breite des Bilds in Meter.height- Die Höhe des Bilds in Meter.
-
Image
Konstruktor für ein Bildobjekt.- Parameters:
filepath- Der Verzeichnispfad des Bildes, das geladen werden soll.pixelPerMeter- Gibt an, wie viele Pixel ein Meter misst.
-
Image
Konstruktor für ein Bildobjekt.- Parameters:
image- Ein bereits im Speicher vorhandenes Bild vom DatentypBufferedImage.pixelPerMeter- Gibt an, wie viele Pixel ein Meter misst.
-