Guest User

Untitled

a guest
Jul 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. if Scene <> nil then
  2. lScale := Scene.GetSceneScale
  3. else
  4. lScale := 1;
  5.  
  6. fBitmap.BitmapScale := lScale;
  7. // scale it with current scale, so it will be larger than PaintBox, - in this case it draws bitmap with antialiasing
  8. fBitmap.SetSize(Ceil(Width * lScale), Ceil(Height * lScale) );
Add Comment
Please, Sign In to add comment