Help Contents / Graphics / Bitmaps / BitPasteToScaled

BitPasteToScaled bitmapTo bitmapFrom x y scalex scaley

command which pastes the bitmapFrom with lower left corner at pixel position (x,y) inside the bitmapTo to bitmapTo, but scaled by the factors scale and scaley. scalex and scaley should be 1 if no scaling is wanted. 

Example: 

	to bitpastetoscaledtest 
		clearScreen 
		box 
		PenUp setXY -10 -10 
		bmp=BitCopy 200 200 
		bmp2=BitCopy 200 200 
		BitMakeTransparent bmp2 ScreenColor 
		BitPasteToScaled bmp bmp2 (BitMaxX bmp)*0.1 (BitMaxY bmp)*0.1 0.9 0.9 
		Home 
		setXY -10 -10 
		BitPaste bmp 
		Home 
		PenDown 
	end 


previous: BitPasteTo	next: loadImage
