Module uk.co.caprica.vlcj
Interface CallbackImagePainter
- All Known Implementing Classes:
FilledCallbackImagePainter,FixedCallbackImagePainter,ScaledCallbackImagePainter
public interface CallbackImagePainter
Specification for a component that paints a video frame in the
CallbackMediaPlayerComponent.-
Method Summary
Modifier and TypeMethodDescriptionvoidpaint(Graphics2D g2, JComponent component, BufferedImage image) Paint the image.voidprepare(Graphics2D g2, JComponent component) Prepare the drawing context.
-
Method Details
-
prepare
Prepare the drawing context.This is intended to set context attributes like
RenderingHintsbefore painting the image itself.- Parameters:
g2- graphics contextcomponent- component to paint
-
paint
Paint the image.- Parameters:
g2- graphics contextcomponent- component to paintimage- image to paint
-