Hi,

Could anyone tell me how to flip rectangles in picturebox?

Thanks

Learn and try Drawing API (System.Drawing namespace classes) and post your code here if you have any question.

show some code....thats the best way you can get help

Here's my code so far:

Dim g As Graphics = pb.CreateGraphics()
                    Dim x As Integer = CInt(CurrentRecord(4))
                    Dim y As Integer = CInt(CurrentRecord(6))
                    Dim width As Integer = CInt(CurrentRecord(5))
                    Dim height As Integer = CInt(CurrentRecord(7))
                    Dim rect As New Rectangle(x, y, width, height)
                    Dim redPen As New Pen(Color.Black, 2)
                    g.DrawRectangle(redPen, rect)
                    Dim mtx As New Matrix
                    redPen.Dispose()
                    g.Dispose()

I want to flip the rectangle upside down.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.