vclprocessor2d.cxx (e4172a75) | vclprocessor2d.cxx (cf95e506) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 373 unchanged lines hidden (view full) --- 382 383 mpOutputDevice->DrawPolyLine(aLocalPolygon, 0.0); 384 } 385 } 386 387 // direct draw of transformed BitmapEx primitive 388 void VclProcessor2D::RenderBitmapPrimitive2D(const primitive2d::BitmapPrimitive2D& rBitmapCandidate) 389 { | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 373 unchanged lines hidden (view full) --- 382 383 mpOutputDevice->DrawPolyLine(aLocalPolygon, 0.0); 384 } 385 } 386 387 // direct draw of transformed BitmapEx primitive 388 void VclProcessor2D::RenderBitmapPrimitive2D(const primitive2d::BitmapPrimitive2D& rBitmapCandidate) 389 { |
390 // check local ViewPort 391 const basegfx::B2DRange& rDiscreteViewPort(getViewInformation2D().getDiscreteViewport()); | 390 BitmapEx aBitmapEx(rBitmapCandidate.getBitmapEx()); |
392 const basegfx::B2DHomMatrix aLocalTransform(maCurrentTransformation * rBitmapCandidate.getTransform()); 393 | 391 const basegfx::B2DHomMatrix aLocalTransform(maCurrentTransformation * rBitmapCandidate.getTransform()); 392 |
394 if(!rDiscreteViewPort.isEmpty()) 395 { 396 // check if we are visible 397 basegfx::B2DRange aUnitRange(0.0, 0.0, 1.0, 1.0); 398 399 aUnitRange.transform(aLocalTransform); 400 401 if(!aUnitRange.overlaps(rDiscreteViewPort)) 402 { 403 return; 404 } 405 } 406 407 BitmapEx aBitmapEx(rBitmapCandidate.getBitmapEx()); 408 | |
409 if(maBColorModifierStack.count()) 410 { 411 aBitmapEx = aBitmapEx.ModifyBitmapEx(maBColorModifierStack); 412 413 if(aBitmapEx.IsEmpty()) 414 { 415 // color gets completely replaced, get it 416 const basegfx::BColor aModifiedColor(maBColorModifierStack.getModifiedColor(basegfx::BColor())); --- 1205 unchanged lines hidden --- | 393 if(maBColorModifierStack.count()) 394 { 395 aBitmapEx = aBitmapEx.ModifyBitmapEx(maBColorModifierStack); 396 397 if(aBitmapEx.IsEmpty()) 398 { 399 // color gets completely replaced, get it 400 const basegfx::BColor aModifiedColor(maBColorModifierStack.getModifiedColor(basegfx::BColor())); --- 1205 unchanged lines hidden --- |