You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Removing depreciated calls to alphaChannel()
This commit is contained in:
@@ -329,7 +329,7 @@ LensFlare::GetFrame(std::shared_ptr<openshot::Frame> frame, int64_t f)
|
||||
}
|
||||
|
||||
// Get original alpha
|
||||
QImage origAlpha = img->alphaChannel();
|
||||
QImage origAlpha = img->convertToFormat(QImage::Format_Alpha8);
|
||||
|
||||
// Additive-light the overlay onto your frame
|
||||
QPainter p(img.get());
|
||||
@@ -340,7 +340,7 @@ LensFlare::GetFrame(std::shared_ptr<openshot::Frame> frame, int64_t f)
|
||||
|
||||
// Rebuild alpha = max(orig, flare×I)
|
||||
QImage finalA(w,h, QImage::Format_Alpha8);
|
||||
auto overlayA = overlay.alphaChannel();
|
||||
auto overlayA = overlay.convertToFormat(QImage::Format_Alpha8);
|
||||
|
||||
for (int yy=0; yy<h; ++yy) {
|
||||
uchar *oL = origAlpha.scanLine(yy);
|
||||
|
||||
Reference in New Issue
Block a user